Fix inadvertent removal in EmacsWindow

* java/org/gnu/emacs/EmacsWindow.java (onKeyUp): Send KeyPress
events upon deferred KEYCODE_BACK.
scratch/comp-safety2
Po Lu 2024-05-05 09:03:57 +08:00
parent 043bb36312
commit 51791fd178
1 changed files with 4 additions and 0 deletions

View 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 (),