Re: cwm(1): Enable numpad Enter on menus

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: cwm(1): Enable numpad Enter on menus

Henrique N. Lengler
> Hi,
>
> This is a tiny patch to enable the use of numpad Enter key on cwm menus.
>
> Regards,
>
> Henrique N. Lengler

No intention to apply this?

Numpad enter key is is recognized by every program on openbsd base and xenocara,
so this would keep consistency. Anyway it is only one line.

cwm.diff (455 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: cwm(1): Enable numpad Enter on menus

Bob Beck-2
I have no objections.. If I hear none by monday I can commit it for you


On Sat, Aug 27, 2016 at 11:53:14PM -0300, Henrique N. Lengler wrote:

> > Hi,
> >
> > This is a tiny patch to enable the use of numpad Enter key on cwm menus.
> >
> > Regards,
> >
> > Henrique N. Lengler
>
> No intention to apply this?
>
> Numpad enter key is is recognized by every program on openbsd base and xenocara,
> so this would keep consistency. Anyway it is only one line.

> Index: menu.c
> ===================================================================
> RCS file: /cvs/xenocara/app/cwm/menu.c,v
> retrieving revision 1.90
> diff -u -p -r1.90 menu.c
> --- menu.c 28 Apr 2016 16:28:38 -0000 1.90
> +++ menu.c 17 Aug 2016 19:14:06 -0000
> @@ -523,6 +523,7 @@ menu_keycode(XKeyEvent *ev, enum ctltype
>   case XK_BackSpace:
>   *ctl = CTL_ERASEONE;
>   break;
> + case XK_KP_Enter:
>   case XK_Return:
>   *ctl = CTL_RETURN;
>   break;

Reply | Threaded
Open this post in threaded view
|

Re: cwm(1): Enable numpad Enter on menus

phessler
In reply to this post by Henrique N. Lengler
On 2016 Aug 27 (Sat) at 23:53:14 -0300 (-0300), Henrique N. Lengler wrote:
:> Hi,
:>
:> This is a tiny patch to enable the use of numpad Enter key on cwm menus.
:>
:> Regards,
:>
:> Henrique N. Lengler
:
:No intention to apply this?
:
:Numpad enter key is is recognized by every program on openbsd base and xenocara,
:so this would keep consistency. Anyway it is only one line.

OK


:Index: menu.c
:===================================================================
:RCS file: /cvs/xenocara/app/cwm/menu.c,v
:retrieving revision 1.90
:diff -u -p -r1.90 menu.c
:--- menu.c 28 Apr 2016 16:28:38 -0000 1.90
:+++ menu.c 17 Aug 2016 19:14:06 -0000
:@@ -523,6 +523,7 @@ menu_keycode(XKeyEvent *ev, enum ctltype
: case XK_BackSpace:
: *ctl = CTL_ERASEONE;
: break;
:+ case XK_KP_Enter:
: case XK_Return:
: *ctl = CTL_RETURN;
: break;


--
If you're not part of the solution, you're part of the precipitate.

Reply | Threaded
Open this post in threaded view
|

Re: cwm(1): Enable numpad Enter on menus

Okan Demirmen
In reply to this post by Henrique N. Lengler
On Sat 2016.08.27 at 23:53 -0300, Henrique N. Lengler wrote:

> > Hi,
> >
> > This is a tiny patch to enable the use of numpad Enter key on cwm menus.
> >
> > Regards,
> >
> > Henrique N. Lengler
>
> No intention to apply this?
>
> Numpad enter key is is recognized by every program on openbsd base and xenocara,
> so this would keep consistency. Anyway it is only one line.

Applied; thank you!