diff options
| author | Po Lu <luangruo@yahoo.com> | 2024-04-27 10:47:12 +0800 |
|---|---|---|
| committer | Po Lu <luangruo@yahoo.com> | 2024-04-27 10:47:12 +0800 |
| commit | db8f7ed7f652c114e606de423e5094b4cefe49e2 (patch) | |
| tree | 2ba2fd002786db7599f9efac0c8965b13f0c54e2 /java/org/gnu/emacs/EmacsNative.java | |
| parent | 763eaa5a324ff51dddad32d725ec8d416597d6d5 (diff) | |
Enable customization of the quit key on Android
* doc/emacs/android.texi (Android Windowing):
* doc/emacs/input.texi (On-Screen Keyboards): Document various
tidbits related to the quit key.
* java/org/gnu/emacs/EmacsNative.java (getQuitKeycode): New
function.
* java/org/gnu/emacs/EmacsWindow.java (EmacsWindow): Rename
`lastVolumeButtonRelease' to `lastQuitKeyRelease'.
(onKeyUp): Treat value returned by getQuitKeycode as the quit
key rather than mandate KEYCODE_VOLUME_DOWN.
* src/android.c (getQuitKeycode): Implement new function.
* src/androidterm.c (syms_of_androidterm)
<android_quit_keycode>: New variable.
Diffstat (limited to 'java/org/gnu/emacs/EmacsNative.java')
| -rw-r--r-- | java/org/gnu/emacs/EmacsNative.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/org/gnu/emacs/EmacsNative.java b/java/org/gnu/emacs/EmacsNative.java index 9b3e60e1a84..acf9e4b204b 100644 --- a/java/org/gnu/emacs/EmacsNative.java +++ b/java/org/gnu/emacs/EmacsNative.java @@ -228,6 +228,10 @@ public final class EmacsNative be prevented from reaching the system input method. */ public static native boolean shouldForwardCtrlSpace (); + /* Return the keycode repeated activation of which should signal + quit. */ + public static native int getQuitKeycode (); + /* Initialize the current thread, by blocking signals that do not interest it. */ public static native void setupSystemThread (); |
