mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-25 15:00:45 -08:00
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:
parent
c3c2289b29
commit
189a91bfb6
7 changed files with 79 additions and 12 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue