Using NumPad keys?

853 views
Skip to first unread message

Hugo Heden

unread,
Nov 30, 2011, 10:35:33 AM11/30/11
to keynav...@googlegroups.com
Dear list, 

I'm trying to configure keynav to use the NumPad-keys, but I'm not sure what to write in .keynavrc, Is it possible to do that? I've tried as follows, but that will not affect the NumPad keys (only the regular number keys) -- 

4 cut-left
2 cut-down
8 cut-up
6 cut-right
7 cut-left,cut-up
9 cut-right,cut-up
1 cut-left,cut-down
3 cut-right,cut-down

How do I specify NumPad keys?

Best regards


- Hugo Heden

Jordan Sissel

unread,
Nov 30, 2011, 12:54:07 PM11/30/11
to keynav...@googlegroups.com
Howdy!

Number pad keys have special symbols, generally prefixed with KP_, such as KP_5 - that should work for you :)

Let me know if you have any other issues.

-Jordan

Best regards


- Hugo Heden

--
You received this message because you are subscribed to the Google Groups "keynav-users" group.
To post to this group, send email to keynav...@googlegroups.com.
To unsubscribe from this group, send email to keynav-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/keynav-users?hl=en.

Hugo Heden

unread,
Dec 1, 2011, 4:50:53 AM12/1/11
to keynav...@googlegroups.com
On Wed, Nov 30, 2011 at 6:54 PM, Jordan Sissel <j...@semicomplete.com> wrote:


On Wed, Nov 30, 2011 at 7:35 AM, Hugo Heden <hugo...@gmail.com> wrote:
Dear list, 

I'm trying to configure keynav to use the NumPad-keys, but I'm not sure what to write in .keynavrc, Is it possible to do that? I've tried as follows, but that will not affect the NumPad keys (only the regular number keys) -- 

4 cut-left
2 cut-down
8 cut-up
6 cut-right
7 cut-left,cut-up
9 cut-right,cut-up
1 cut-left,cut-down
3 cut-right,cut-down

How do I specify NumPad keys?


Howdy!

Number pad keys have special symbols, generally prefixed with KP_, such as KP_5 - that should work for you :)


Ah, KP for KeyPad I guess. Works excellently, thanks a lot!

- Hugo

Jordan Sissel

unread,
Dec 1, 2011, 4:52:56 AM12/1/11
to keynav...@googlegroups.com
To be fair I only know these things because I've spent too many hours waist-deep in X11 client code. It's a miracle I'm still mostly sane! :)

Let me know if you have any other issues

-Jordan
 

- Hugo

Hugo Heden

unread,
Dec 1, 2011, 8:53:54 AM12/1/11
to keynav...@googlegroups.com
On Thu, Dec 1, 2011 at 10:52 AM, Jordan Sissel <j...@semicomplete.com> wrote:


On Thu, Dec 1, 2011 at 1:50 AM, Hugo Heden <hugo...@gmail.com> wrote:
On Wed, Nov 30, 2011 at 6:54 PM, Jordan Sissel <j...@semicomplete.com> wrote:


On Wed, Nov 30, 2011 at 7:35 AM, Hugo Heden <hugo...@gmail.com> wrote:
Dear list, 

I'm trying to configure keynav to use the NumPad-keys, but I'm not sure what to write in .keynavrc, Is it possible to do that? I've tried as follows, but that will not affect the NumPad keys (only the regular number keys) -- 

4 cut-left
2 cut-down
8 cut-up
6 cut-right
7 cut-left,cut-up
9 cut-right,cut-up
1 cut-left,cut-down
3 cut-right,cut-down

How do I specify NumPad keys?


Howdy!

Number pad keys have special symbols, generally prefixed with KP_, such as KP_5 - that should work for you :)


Ah, KP for KeyPad I guess. Works excellently, thanks a lot!

To be fair I only know these things because I've spent too many hours waist-deep in X11 client code. It's a miracle I'm still mostly sane! :)


Is there list of these symbols somewhere? Some source file in some X11 client code or something would do :-) 

For example, I would like to experiment with using other keys in the keypad (other than the numbers) for various purposes.. such as:

ctrl+NumLock start # Nope
ctrl+KP_NumLock start       # Hmm, no

or maybe weird things like:

KP_5 warp,end,sh "xdotool key shift+NumLock" 

(last piece there in order to enable the "usual" accessibility mouse keys after keynav has finished)

And how do I specify the division sign (for instance) on the keypad? (KP_/  and KP_div don't seem to work.)

- Hugo

Hugo Heden

unread,
Dec 1, 2011, 10:30:35 AM12/1/11
to keynav...@googlegroups.com
In fact, maybe it's the regular arrow-keys I want to use.. 
Arrow_Left
LeftArrow
No.. Hm -- a list of key-symbols would be useful :-)

- Hugo

Axel Beckert

unread,
Dec 1, 2011, 12:08:10 PM12/1/11
to keynav...@googlegroups.com
Hi,

On Thu, Dec 01, 2011 at 04:30:35PM +0100, Hugo Heden wrote:
> > Is there list of these symbols somewhere? Some source file in some X11
> > client code or something would do :-)

On my Debian there is /usr/include/X11/keysymdef.h from the package
x11proto-core-dev.

Another ancient but still neat and useful tool for such questions is
xkeycaps: http://www.jwz.org/xkeycaps/

> In fact, maybe it's the regular arrow-keys I want to use..
> Arrow_Left
> LeftArrow
> No.. Hm -- a list of key-symbols would be useful :-)

IIRC they're called just Left, Right, Up and Down without Arrow
somewhere.

Kind regards, Axel
--
/~\ Plain Text Ribbon Campaign | Axel Beckert
\ / Say No to HTML in E-Mail and News | a...@deuxchevaux.org (Mail)
X See http://www.asciiribbon.org/ | a...@noone.org (Mail+Jabber)
/ \ I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)

Hugo Heden

unread,
Dec 1, 2011, 3:52:02 PM12/1/11
to keynav...@googlegroups.com
2011/12/1 Axel Beckert <a...@deuxchevaux.org>
Hi,

On Thu, Dec 01, 2011 at 04:30:35PM +0100, Hugo Heden wrote:
> > Is there list of these symbols somewhere? Some source file in some X11
> > client code or something would do :-)

On my Debian there is /usr/include/X11/keysymdef.h from the package
x11proto-core-dev.

Ah, thanks, same here (Ubuntu).

Also on web: http://cgit.freedesktop.org/xorg/proto/xproto/tree/keysymdef.h (no idea if official version..)
 

Another ancient but still neat and useful tool for such questions is
xkeycaps: http://www.jwz.org/xkeycaps/

> In fact, maybe it's the regular arrow-keys I want to use..
> Arrow_Left
> LeftArrow
> No.. Hm -- a list of key-symbols would be useful :-)

IIRC they're called just Left, Right, Up and Down without Arrow
somewhere.

Seems correct from looking at that header file. Will try!

Thanks a lot!

- Hugo

Reply all
Reply to author
Forward
0 new messages