diff options
| author | Po Lu | 2023-06-03 15:08:05 +0800 |
|---|---|---|
| committer | Po Lu | 2023-06-03 15:08:05 +0800 |
| commit | a4bf3ad95869771afb4b8c64d14fa145348e4d2b (patch) | |
| tree | 4a322f6a1e29a4caa87ef064ea89461acb35e6b1 /src/androidterm.c | |
| parent | c308accc6d0f45cc64bb664fcc43a33a7ab015b3 (diff) | |
| download | emacs-a4bf3ad95869771afb4b8c64d14fa145348e4d2b.tar.gz emacs-a4bf3ad95869771afb4b8c64d14fa145348e4d2b.zip | |
Fix typos in Android port
* lisp/bindings.el (global-map): Bind cut, copy and paste.
* src/androidterm.c (JNICALL): Use key.
Diffstat (limited to 'src/androidterm.c')
| -rw-r--r-- | src/androidterm.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/androidterm.c b/src/androidterm.c index 2894a58e6b9..d8a8b4c2d71 100644 --- a/src/androidterm.c +++ b/src/androidterm.c | |||
| @@ -5217,6 +5217,7 @@ NATIVE_NAME (performContextMenuAction) (JNIEnv *env, jobject object, | |||
| 5217 | case 0: /* android.R.id.selectAll */ | 5217 | case 0: /* android.R.id.selectAll */ |
| 5218 | case 1: /* android.R.id.startSelectingText */ | 5218 | case 1: /* android.R.id.startSelectingText */ |
| 5219 | case 2: /* android.R.id.stopSelectingText */ | 5219 | case 2: /* android.R.id.stopSelectingText */ |
| 5220 | default: | ||
| 5220 | /* These actions are not implemented. */ | 5221 | /* These actions are not implemented. */ |
| 5221 | return; | 5222 | return; |
| 5222 | 5223 | ||
| @@ -5231,9 +5232,6 @@ NATIVE_NAME (performContextMenuAction) (JNIEnv *env, jobject object, | |||
| 5231 | case 5: /* android.R.id.paste */ | 5232 | case 5: /* android.R.id.paste */ |
| 5232 | key = 279; | 5233 | key = 279; |
| 5233 | break; | 5234 | break; |
| 5234 | |||
| 5235 | default: | ||
| 5236 | emacs_abort (); | ||
| 5237 | } | 5235 | } |
| 5238 | 5236 | ||
| 5239 | event.xkey.type = ANDROID_KEY_PRESS; | 5237 | event.xkey.type = ANDROID_KEY_PRESS; |
| @@ -5241,7 +5239,7 @@ NATIVE_NAME (performContextMenuAction) (JNIEnv *env, jobject object, | |||
| 5241 | event.xkey.window = window; | 5239 | event.xkey.window = window; |
| 5242 | event.xkey.time = 0; | 5240 | event.xkey.time = 0; |
| 5243 | event.xkey.state = 0; | 5241 | event.xkey.state = 0; |
| 5244 | event.xkey.keycode = 66; | 5242 | event.xkey.keycode = key; |
| 5245 | event.xkey.unicode_char = 0; | 5243 | event.xkey.unicode_char = 0; |
| 5246 | event.xkey.counter = ++edit_counter; | 5244 | event.xkey.counter = ++edit_counter; |
| 5247 | 5245 | ||