#2534 Please Test: NumPad keys after Alt+Tab window switch

closed-fixed
Xuan Baldauf
None
5
2008-05-10
2006-05-13
Xuan Baldauf
No

How to reproduce:

Be sure that you use Linux, KDE and that the "NumLock"
key is on. When the jEdit window is in the foreground,
press Alt+Tab (so you switch to another window, say
your web browser). Then you switch back somehow (using
Alt+Tab or the mouse). Then you press "/" on the numpad.

Expected behaviour:
"/" is inserted into the current text buffer.

Actual behaviour:
nothing happens.

Discussion:
The reason lies in the KeyEventWorkaround class. In an
attempt to work around certain key-event related bugs,
it also swallows some key-events.

Solution:
It seems that most key-event workarounds are not needed
anymore (users need to have JDK 1.4 or greater). Also
the KeyEventWorkaround class intermixes working around
bugs and creating objects of type KeyEventTranslator.Key.

A KeyEventTranslator.Key object represents a hit key,
carring either character information if the key
represents a character to be inserted into the current
text buffer (e.g. the character 'A') or key information
if the key does not represent a character to be
inserted into the current text buffer.

To solve the problem, I circumvented the
KeyEventWorkaround class and reimplemented the
generation of KeyEventTranslator.Key objects.

The resulting patch is divided into two parts:
(1) jedit.simplifyKeyHandling.introduce.patch: This
patch just introduces the new simplified key handling,
but it does not enable it. Everything works as before
(including the bugs).
(2) jedit.simplifyKeyHandling.enable.patch This patch
just enables the simplified key handling.

It may be that the second patch lets some ancient
keyboard bugs reappear. If it is so, then revert the
second patch and please let me know what is wrong.

Thank you.

Discussion

1 2 3 > >> (Page 1 of 3)
  • Alan Ezust
    Alan Ezust
    2006-05-13

    • assigned_to: nobody --> ezust
     
  • Alan Ezust
    Alan Ezust
    2006-06-05

    • assigned_to: ezust --> nobody
     
  • Alan Ezust
    Alan Ezust
    2006-06-05

    • assigned_to: nobody --> mediumnet
     
  • Alan Ezust
    Alan Ezust
    2006-06-05

    Logged In: YES
    user_id=935841

    This bug is marked as "fixed", but still left "open" in
    status because we want more people to test the new keyboard
    handling functionality.

    It's been committed to CVS:jedit 4.3pre5.

     
  • Alan Ezust
    Alan Ezust
    2006-06-05

    • summary: NumPad keys do not work after Alt+Tab window switch --> Please Test: NumPad keys after Alt+Tab window switch
    • status: open --> open-fixed
     
  • Logged In: YES
    user_id=285591

    Hi, another bug that is fixed by the new keyboard handling
    is the following :
    I add a line
    :encoding=UTF-324354: (an encoding that doesn't exists)
    I have the dialog complaining about that, and after the
    dialog is closed my numpad do not work. But the patch fixes it.

    But I have a new bug :
    I have a shortcut ctrl+alt+F to add explicit fold that is
    broken by the new keyboard handling.
    This is probably related with bug 1493185

     
  • Xuan Baldauf
    Xuan Baldauf
    2006-06-22

    Logged In: YES
    user_id=506885

    Hello kpouer,

    please retest this problem using newest jEdit from CVS. I
    cannot reproduce your Ctrl+Alt+F-Problem with the newest CVS
    version.

    I cannot find any bugs of the new key event handling
    anymore, so I'm closing this bug as fixed. Does anybody
    disagree?

     
  • Xuan Baldauf
    Xuan Baldauf
    2006-06-22

    • status: open-fixed --> closed-fixed
     
1 2 3 > >> (Page 1 of 3)