]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix inadvertent removal in EmacsWindow
authorPo Lu <luangruo@yahoo.com>
Sun, 5 May 2024 01:03:57 +0000 (09:03 +0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 6 May 2024 16:39:17 +0000 (18:39 +0200)
* java/org/gnu/emacs/EmacsWindow.java (onKeyUp): Send KeyPress
events upon deferred KEYCODE_BACK.

(cherry picked from commit 51791fd1781729baeb38551e833861d9c24c302f)

java/org/gnu/emacs/EmacsWindow.java

index 793ffa4f191e768956079e629ed68f82ded8d09d..e780f401adc983adce16766e8c740897b370abfc 100644 (file)
@@ -788,6 +788,10 @@ public final class EmacsWindow extends EmacsHandleObject
 
        if ((event.getFlags () & KeyEvent.FLAG_CANCELED) != 0)
          return;
+
+       /* Dispatch the key press event that was deferred till now.  */
+       EmacsNative.sendKeyPress (this.handle, event.getEventTime (),
+                                 state, keyCode, unicode_char);
       }
 
     EmacsNative.sendKeyRelease (this.handle, event.getEventTime (),