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.
This commit is contained in:
@@ -66,11 +66,12 @@ public final class EmacsInputConnection extends BaseInputConnection
|
||||
|| Build.MANUFACTURER.equalsIgnoreCase ("Honor"))
|
||||
extractAbsoluteOffsets = syncAfterCommit = true;
|
||||
|
||||
/* The Samsung keyboard takes `selectionStart' at face value if
|
||||
some text is returned, and also searches for words solely
|
||||
within that text. However, when no text is returned, it falls
|
||||
back to getTextAfterCursor and getTextBeforeCursor. */
|
||||
if (Build.MANUFACTURER.equalsIgnoreCase ("Samsung"))
|
||||
/* The Samsung and Vivo keyboards take `selectionStart' at face
|
||||
value if some text is returned, and also searches for words
|
||||
solely within that text. However, when no text is returned, it
|
||||
falls back to getTextAfterCursor and getTextBeforeCursor. */
|
||||
if (Build.MANUFACTURER.equalsIgnoreCase ("Samsung")
|
||||
|| Build.MANUFACTURER.equalsIgnoreCase ("Vivo"))
|
||||
extractAbsoluteOffsets = true;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user