aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPo Lu2023-10-01 17:07:58 +0800
committerPo Lu2023-10-01 17:08:25 +0800
commit12aca0f90d7aeaa8444508245e7596a64f2e8dce (patch)
treec3a59038f27c443573ecafaef90af6520e9b16f4
parent7caa3f5499b1ca4b6d66c1655a4e0d6903755679 (diff)
downloademacs-12aca0f90d7aeaa8444508245e7596a64f2e8dce.tar.gz
emacs-12aca0f90d7aeaa8444508245e7596a64f2e8dce.zip
Update Android port
* doc/emacs/input.texi (On-Screen Keyboards): Revise documentation to reflect changes. * src/keyboard.c (lispy_function_keys) <KEYCODE_DPAD_CENTER>: Define select key absent out of negligence. * src/xterm.c (syms_of_xterm) <x-quit-keysym>: Default to nil. (bug#66040)
-rw-r--r--doc/emacs/input.texi7
-rw-r--r--src/keyboard.c5
-rw-r--r--src/xterm.c9
3 files changed, 11 insertions, 10 deletions
diff --git a/doc/emacs/input.texi b/doc/emacs/input.texi
index 4f49ca3cece..db0e88a1c9c 100644
--- a/doc/emacs/input.texi
+++ b/doc/emacs/input.texi
@@ -145,9 +145,10 @@ of a hardware button that is always present on the device results in
145Emacs quitting. @xref{Quitting}. 145Emacs quitting. @xref{Quitting}.
146 146
147@vindex x-quit-keysym 147@vindex x-quit-keysym
148 Which button is used to do this depends on the window system in use: 148 The button afforded such special treatment varies; under X, no such
149on X, it is defined in the variable @code{x-quit-keysym}, and on 149button exists by default, but one can be configured through the
150Android, it is always the volume down button. 150variable @code{x-quit-keysym}, whereas under Android it is always the
151volume down buttons.
151 152
152@cindex text conversion, keyboards 153@cindex text conversion, keyboards
153 Most input methods designed to work with on-screen keyboards perform 154 Most input methods designed to work with on-screen keyboards perform
diff --git a/src/keyboard.c b/src/keyboard.c
index 6ab1cdebc12..f756f163e87 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -4989,6 +4989,10 @@ static const char *const lispy_accent_keys[] =
4989#ifdef HAVE_ANDROID 4989#ifdef HAVE_ANDROID
4990#define FUNCTION_KEY_OFFSET 0 4990#define FUNCTION_KEY_OFFSET 0
4991 4991
4992/* Mind that Android designates 23 KEYCODE_DPAD_CENTER, but it is
4993 merely abstruse terminology for the ``select'' key frequently
4994 located in certain physical keyboards. */
4995
4992const char *const lispy_function_keys[] = 4996const char *const lispy_function_keys[] =
4993 { 4997 {
4994 /* All elements in this array default to 0, except for the few 4998 /* All elements in this array default to 0, except for the few
@@ -5025,6 +5029,7 @@ const char *const lispy_function_keys[] =
5025 [218] = "kana", 5029 [218] = "kana",
5026 [21] = "left", 5030 [21] = "left",
5027 [22] = "right", 5031 [22] = "right",
5032 [23] = "select",
5028 [24] = "volume-up", 5033 [24] = "volume-up",
5029 [259] = "help", 5034 [259] = "help",
5030 [25] = "volume-down", 5035 [25] = "volume-down",
diff --git a/src/xterm.c b/src/xterm.c
index c459e5d8d95..18a6c51efb3 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -32812,17 +32812,12 @@ frame placement via frame parameters, `set-frame-position', and
32812 32812
32813This is used to support quitting on devices that do not have any kind 32813This is used to support quitting on devices that do not have any kind
32814of physical keyboard, or where the physical keyboard is incapable of 32814of physical keyboard, or where the physical keyboard is incapable of
32815entering `C-g'. It defaults to `XF86XK_AudioLowerVolume' on XFree86 32815entering `C-g'.
32816and X.Org servers, and is unset.
32817 32816
32818The value is an alist associating between strings, describing X server 32817The value is an alist associating between strings, describing X server
32819vendor names, and a single number describing the keysym to use. The 32818vendor names, and a single number describing the keysym to use. The
32820keysym to use for each display connection is determined upon 32819keysym to use for each display connection is determined upon
32821connection setup, and does not reflect further changes to this 32820connection setup, and does not reflect further changes to this
32822variable. */); 32821variable. */);
32823 Vx_quit_keysym 32822 Vx_quit_keysym = Qnil;
32824 = list2 (Fcons (build_string ("The X.Org Foundation"),
32825 make_int (269025041)),
32826 Fcons (build_string ("The XFree86 Project, Inc."),
32827 make_int (269025041)));
32828} 32823}