diff options
| author | Po Lu | 2023-10-01 17:07:58 +0800 |
|---|---|---|
| committer | Po Lu | 2023-10-01 17:08:25 +0800 |
| commit | 12aca0f90d7aeaa8444508245e7596a64f2e8dce (patch) | |
| tree | c3a59038f27c443573ecafaef90af6520e9b16f4 | |
| parent | 7caa3f5499b1ca4b6d66c1655a4e0d6903755679 (diff) | |
| download | emacs-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.texi | 7 | ||||
| -rw-r--r-- | src/keyboard.c | 5 | ||||
| -rw-r--r-- | src/xterm.c | 9 |
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 | |||
| 145 | Emacs quitting. @xref{Quitting}. | 145 | Emacs 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 |
| 149 | on X, it is defined in the variable @code{x-quit-keysym}, and on | 149 | button exists by default, but one can be configured through the |
| 150 | Android, it is always the volume down button. | 150 | variable @code{x-quit-keysym}, whereas under Android it is always the |
| 151 | volume 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 | |||
| 4992 | const char *const lispy_function_keys[] = | 4996 | const 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 | ||
| 32813 | This is used to support quitting on devices that do not have any kind | 32813 | This is used to support quitting on devices that do not have any kind |
| 32814 | of physical keyboard, or where the physical keyboard is incapable of | 32814 | of physical keyboard, or where the physical keyboard is incapable of |
| 32815 | entering `C-g'. It defaults to `XF86XK_AudioLowerVolume' on XFree86 | 32815 | entering `C-g'. |
| 32816 | and X.Org servers, and is unset. | ||
| 32817 | 32816 | ||
| 32818 | The value is an alist associating between strings, describing X server | 32817 | The value is an alist associating between strings, describing X server |
| 32819 | vendor names, and a single number describing the keysym to use. The | 32818 | vendor names, and a single number describing the keysym to use. The |
| 32820 | keysym to use for each display connection is determined upon | 32819 | keysym to use for each display connection is determined upon |
| 32821 | connection setup, and does not reflect further changes to this | 32820 | connection setup, and does not reflect further changes to this |
| 32822 | variable. */); | 32821 | variable. */); |
| 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 | } |