Update Android port
* java/org/gnu/emacs/EmacsNative.java (EmacsNative): New function clearInputFlags. * java/org/gnu/emacs/EmacsView.java (onCreateInputConnection): Stop reporting changes after a new input method connection is established. * src/androidterm.c (android_handle_ime_event): Implement that change. (JNICALL): New function.
This commit is contained in:
@@ -627,6 +627,10 @@ public final class EmacsView extends ViewGroup
|
||||
return null;
|
||||
}
|
||||
|
||||
/* Reset flags set by the previous input method. */
|
||||
|
||||
EmacsNative.clearInputFlags (window.handle);
|
||||
|
||||
/* Obtain the current position of point and set it as the
|
||||
selection. Don't do this under one specific situation: if
|
||||
`android_update_ic' is being called in the main thread, trying
|
||||
@@ -663,10 +667,6 @@ public final class EmacsView extends ViewGroup
|
||||
|
||||
if (inputConnection == null)
|
||||
inputConnection = new EmacsInputConnection (this);
|
||||
else
|
||||
/* Reset the composing region, in case there is still composing
|
||||
text. */
|
||||
inputConnection.finishComposingText ();
|
||||
|
||||
/* Return the input connection. */
|
||||
return inputConnection;
|
||||
|
||||
Reference in New Issue
Block a user