On Fri, Sep 05, 2003 at 07:19:35PM +0300, Tzafrir Cohen wrote: > On Fri, Sep 05, 2003 at 05:17:49PM +0300, Itay 'z9u2K' Duvdevani wrote: > > Hey list, > > I'm trying to map one of my keyboard buttons (my Menu button) to the third > > mouse button (button 2). > > > > I did: > > xmodmap -e 'keysym Menu = Pointer_Button2' > > > > but it does not seem to work. > > > > xev gives the correct code, when I press the Menu button I get the > > Pointer_Button2 keysym, but through a KeyPressed event and not a > > ButtonPressed event, which does not do what I intended it to do... > > > > I'm using a laptop keyboard, so using the numpad as my mouse using > > CTRL+SHIFT+NumLock is not a solution for me... > > > > How can I make a keyboard button to generate a ButtonPressed event and not a > > KeyPressed event? > > > THis is basically set in /usr/X11R6/lib/X11/xkb/compat/mousekeys >
This file defines a number of keysyms. I tried to use them with xmodmap, but to no avail: The most I managed was to get it to function as the first button. What I didn't try, however, is editiong that file... -- Tzafrir Cohen +---------------------------+ http://www.technion.ac.il/~tzafrir/ |vim is a mutt's best friend| mailto:[EMAIL PROTECTED] +---------------------------+ ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]