You could use e16keyedit(e16) or ebindings(e17) Both of which ask you to press the key you want to use (and interprets based on what is pressed) so you don't have to use xev. Unless of course you'd like to, and that'd be ok too. =)
* [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: > On Fri, 07 Mar 2003 14:39:27 GMT, Richard Martin <[EMAIL PROTECTED]> said: > > Can anyone tell me how to set-up keybindings in E that use the "Windoze" > > keys, the ALT-GR key or that funny little key with the picture of a > > context-menu on it? > > First, just run the 'xev' utility, and see what keycode those keys generate. > > If they don't generate a keycode that 'xev' can see, you're basically screwed > and need to fix/hack the X server so they do get generated. Just as a data > point, on my keyboard, I get: > > for 'left m$ flag': > KeyPress event, serial 20, synthetic NO, window 0x2600001, > root 0x8c, subw 0x0, time 5940290, (89,72), root:(771,1089), > state 0x0, keycode 115 (keysym 0x0, NoSymbol), same_screen YES, > XLookupString gives 0 bytes: "" > > for 'right m$ flag': > KeyPress event, serial 25, synthetic NO, window 0x2600001, > root 0x8c, subw 0x0, time 5944298, (89,72), root:(771,1089), > state 0x0, keycode 116 (keysym 0x0, NoSymbol), same_screen YES, > XLookupString gives 0 bytes: "" > > for 'funky-context-menu': > KeyPress event, serial 25, synthetic NO, window 0x2600001, > root 0x8c, subw 0x0, time 5944958, (89,72), root:(771,1089), > state 0x0, keycode 117 (keysym 0x0, NoSymbol), same_screen YES, > XLookupString gives 0 bytes: "" > > Your keycodes may differ. > > Second, you need to have a keysym other than 'NoSymbol'. This may be doable > by beating up on /usr/X11R6/lib/X11/XKeysymDB but may require more - I haven't > actually tried it. > > Once you get them reporting a keysym, then you can just go ahead and use them > like any other keysym.... > > Incidentally, the same technique would apply to get (for instance) the row > of cute little buttons on a Microsoft Natural keyboard working - the ones > labelled back/forward/stop/.../next track/prev trak/media... > -- > Valdis Kletnieks > Computer Systems Senior Engineer > Virginia Tech > __ Corey Donohoe [EMAIL PROTECTED] [EMAIL PROTECTED] ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com _______________________________________________ enlightenment-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel