Re: key pad keys appear the same as normal
Alan Ezust <[email protected]>
| Newsgroups | gmane.editors.jedit.user |
|---|---|
| Message-ID | <CALy5K9oLZF046b1YKBdNS1nDHp+7QYPZqFBN5NjB24ANXXC66g@mail.gmail.com> |
I think the code for that was introduced in the "startup.bsh" file under the "startup" folder. We did something with the keypad arrowkeys there. You can hand-edit that file and remove the stuff you don't want. On Wed, May 9, 2018 at 3:16 AM, Alex Finch <[email protected]> wrote: > > Hi, > > I have just updated my version of jedit. On my previous version > 5.1.0 I had set up a number of private macros to work from the keypad. I > now have version 5.5.0 and I find that the keypad keys are being translated > to the identical code as the normal keyboard. I have run the keyboard > tester and tried keypad - , keyboard -, keypad right arrow, and keyboard > right arrow and the KEY_PRESSED keyCode key is different but the keyChar > and "Translated to" are the same. Under 5.1.0 the "Translated to" is > different (See below). Is this a bug or a feature? Is there some way to get > back the old behaviour? I'm on linux by the way. > > thanks , > > Alex > > - - RIGHT RIGHT > > Event KEY_PRESSED,keyCode=0x6d,keyChar=0x2d,modifiers=0x0,consumed=0 > filtered > Event KEY_TYPED,keyCode=0x0,keyChar=0x2d,modifiers=0x0,consumed=0 passed > ==> Translated to <0,2d> > Event KEY_RELEASED,keyCode=0x6d,keyChar=0x2d,modifiers=0x0,consumed=0 > passed > Event KEY_PRESSED,keyCode=0x2d,keyChar=0x2d,modifiers=0x0,consumed=0 > filtered > Event KEY_TYPED,keyCode=0x0,keyChar=0x2d,modifiers=0x0,consumed=0 passed > ==> Translated to <0,2d> > Event KEY_RELEASED,keyCode=0x2d,keyChar=0x2d,modifiers=0x0,consumed=0 > passed > Event KEY_PRESSED,keyCode=0x27,keyChar=0xffff,modifiers=0x0,consumed=0 > passed > ==> Translated to <27,0> > Event KEY_RELEASED,keyCode=0x27,keyChar=0xffff,modifiers=0x0,consumed=0 > passed > Event KEY_PRESSED,keyCode=0xe3,keyChar=0xffff,modifiers=0x0,consumed=0 > passed > ==> Translated to <27,0> > Event KEY_RELEASED,keyCode=0xe3,keyChar=0xffff,modifiers=0x0,consumed=0 > passed > > Previous behaviour: > > SUBTRACT - KP_RIGHT RIGHT > > Event KEY_PRESSED,keyCode=0x6d,keyChar=0x2d,modifiers=0x0,consumed=0 > passed > ==> Translated to <6d,0> > Event KEY_TYPED,keyCode=0x0,keyChar=0x2d,modifiers=0x0,consumed=0 filtered > Event KEY_RELEASED,keyCode=0x6d,keyChar=0x2d,modifiers=0x0,consumed=0 > passed > Event KEY_PRESSED,keyCode=0x2d,keyChar=0x2d,modifiers=0x0,consumed=0 > filtered > Event KEY_TYPED,keyCode=0x0,keyChar=0x2d,modifiers=0x0,consumed=0 passed > ==> Translated to <0,2d> > Event KEY_RELEASED,keyCode=0x2d,keyChar=0x2d,modifiers=0x0,consumed=0 > passed > Event KEY_PRESSED,keyCode=0xe3,keyChar=0xffff,modifiers=0x0,consumed=0 > passed > ==> Translated to <e3,0> > Event KEY_RELEASED,keyCode=0xe3,keyChar=0xffff,modifiers=0x0,consumed=0 > passed > Event KEY_PRESSED,keyCode=0x27,keyChar=0xffff,modifiers=0x0,consumed=0 > passed > ==> Translated to <27,0> > Event KEY_RELEASED,keyCode=0x27,keyChar=0xffff,modifiers=0x0,consumed=0 > passed > > -- > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > -- > ----------------------------------------------- > jEdit Users' List > [email protected] > https://lists.sourceforge.net/lists/listinfo/jedit-users > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot -- ----------------------------------------------- jEdit Users' List [email protected] https://lists.sourceforge.net/lists/listinfo/jedit-users