aboutsummaryrefslogtreecommitdiffstats
path: root/src/androidgui.h
diff options
context:
space:
mode:
authorPo Lu2023-06-02 13:31:40 +0800
committerPo Lu2023-06-02 13:31:40 +0800
commit189a91bfb699babd936dae48b96d71a332cac8d2 (patch)
tree73ccb99dfebc3c2bb0770781c120a37338bcf76a /src/androidgui.h
parentc3c2289b29df2b723b9db93d9ea4cd5d04fc89a0 (diff)
downloademacs-189a91bfb699babd936dae48b96d71a332cac8d2.tar.gz
emacs-189a91bfb699babd936dae48b96d71a332cac8d2.zip
Update Android port
* java/org/gnu/emacs/EmacsInputConnection.java (EmacsInputConnection): Apply workarounds on Vivo devices as well. * src/android.c (sendKeyPress, sendKeyRelease): Clear counter. * src/androidgui.h (struct android_key_event): New field `counter'. * src/androidterm.c (handle_one_android_event): Generate barriers as appropriate. (JNICALL): Set `counter'. * src/frame.h (enum text_conversion_operation): * src/textconv.c (detect_conversion_events) (really_set_composing_text, handle_pending_conversion_events_1) (handle_pending_conversion_events, textconv_barrier): * src/textconv.h: Implement text conversion barriers and fix various typos.
Diffstat (limited to 'src/androidgui.h')
-rw-r--r--src/androidgui.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/androidgui.h b/src/androidgui.h
index 02cc73809b9..9e604cdcb8c 100644
--- a/src/androidgui.h
+++ b/src/androidgui.h
@@ -277,6 +277,10 @@ struct android_key_event
277 /* If this field is -1, then android_lookup_string should be called 277 /* If this field is -1, then android_lookup_string should be called
278 to retrieve the associated individual characters. */ 278 to retrieve the associated individual characters. */
279 unsigned int unicode_char; 279 unsigned int unicode_char;
280
281 /* If this field is non-zero, a text conversion barrier should be
282 generated with its value as the counter. */
283 unsigned long counter;
280}; 284};
281 285
282typedef struct android_key_event android_key_pressed_event; 286typedef struct android_key_event android_key_pressed_event;