diff options
| author | Po Lu | 2024-03-08 20:47:23 +0800 |
|---|---|---|
| committer | Po Lu | 2024-03-08 20:47:51 +0800 |
| commit | cc75e103dd2a9d47f29addcc724812162c1a2626 (patch) | |
| tree | 9fb1c0310d4b01ed014a9fc1bc8473b44d36f98f /src | |
| parent | bd017175d4571e24ef1fdf84676136af1d36002d (diff) | |
| download | emacs-cc75e103dd2a9d47f29addcc724812162c1a2626.tar.gz emacs-cc75e103dd2a9d47f29addcc724812162c1a2626.zip | |
Update android_wc_lookup_string
* src/android.c (android_wc_lookup_string): Don't clear compose
state upon modifier key depress.
Diffstat (limited to 'src')
| -rw-r--r-- | src/android.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/android.c b/src/android.c index 5b3fbb25373..d7bd06f1f34 100644 --- a/src/android.c +++ b/src/android.c | |||
| @@ -5535,7 +5535,10 @@ android_wc_lookup_string (android_key_pressed_event *event, | |||
| 5535 | 5535 | ||
| 5536 | /* Terminate any ongoing character composition after a key is | 5536 | /* Terminate any ongoing character composition after a key is |
| 5537 | registered. */ | 5537 | registered. */ |
| 5538 | if (compose_status) | 5538 | if (compose_status |
| 5539 | /* Provided that a modifier key is not the key being | ||
| 5540 | depressed. */ | ||
| 5541 | && !ANDROID_IS_MODIFIER_KEY (event->keycode)) | ||
| 5539 | compose_status->chars_matched = 0; | 5542 | compose_status->chars_matched = 0; |
| 5540 | *status_return = status; | 5543 | *status_return = status; |
| 5541 | return rc; | 5544 | return rc; |