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.
This commit is contained in:
Po Lu
2024-04-27 10:47:12 +08:00
parent 763eaa5a32
commit db8f7ed7f6
6 changed files with 47 additions and 18 deletions

View File

@@ -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 ();