On Friday 05 September 2003 19:19, you 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?
>
> BTW: are you aware of the standard X keyboard-mouse?

yes, I am, see my original post:
> > I'm using a laptop keyboard, so using the numpad as my mouse using
> > CTRL+SHIFT+NumLock is not a solution for me...

>
> hold ctrl-(left?)alt-shift and press num-lock. You should hear a beep.
>
> Now the numeric keypad will operate the mouse:
>
>   * arrows move, including home, end, pageup and pgdn
>   * 5   clicks the "current button"
>   * +   doubles-clicks the "current button"
>   * 0   holds down the "current button"
>   * .   releases the "current button"
>
> The "current button is by-default the first one. You can change it
> using:
>
>  /   The first
>  *   The second
>  -   The third ("middle")
>
> THis is basically set in  /usr/X11R6/lib/X11/xkb/compat/mousekeys

-- 
Regards,
Itay 'z9u2K' Duvdevani, GNU/Linux Kinneret.
Public GPG Key: ftp://ftp.berlios.de/pub/kinneret/z9u2k.asc


=================================================================
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]

Reply via email to