diff options
| author | Po Lu | 2024-06-10 15:37:58 +0800 |
|---|---|---|
| committer | Po Lu | 2024-06-10 15:39:57 +0800 |
| commit | b7b43931ee4263e81bdaf41da571b94e01d10eff (patch) | |
| tree | f872561b05053c78e41bfd1f843f75978c14e2ea | |
| parent | d6ecabe23b752116e48e8fbb28ee6f47eef5ec18 (diff) | |
| download | emacs-b7b43931ee4263e81bdaf41da571b94e01d10eff.tar.gz emacs-b7b43931ee4263e81bdaf41da571b94e01d10eff.zip | |
Minor revisions to Android key bindings
* etc/PROBLEMS (Runtime problems specific to Android): Document
inappropriate generation of F3 on certain systems.
* lisp/bindings.el ([iconify-frame], [make-frame-visible]):
Update references to long-obsolete ignore-event command.
* lisp/term/android-win.el ([KEYCODE_NOTIFICATION], [\83]):
Ignore these two nuisance keys by default.
| -rw-r--r-- | etc/PROBLEMS | 10 | ||||
| -rw-r--r-- | lisp/bindings.el | 5 | ||||
| -rw-r--r-- | lisp/term/android-win.el | 10 |
3 files changed, 21 insertions, 4 deletions
diff --git a/etc/PROBLEMS b/etc/PROBLEMS index 085ed4d0532..6c143d22de4 100644 --- a/etc/PROBLEMS +++ b/etc/PROBLEMS | |||
| @@ -3666,7 +3666,7 @@ result that the next redisplay recenters the window around this outdated | |||
| 3666 | position. There is no solution but installing a more | 3666 | position. There is no solution but installing a more |
| 3667 | cooperative--and preferably free--input method. | 3667 | cooperative--and preferably free--input method. |
| 3668 | 3668 | ||
| 3669 | ** The default input method sometimes performs edits out of place in large buffers. | 3669 | ** The default input method performs edits elsewhere than point in large buffers. |
| 3670 | 3670 | ||
| 3671 | When first reactivated in a window after having been dismissed, certain | 3671 | When first reactivated in a window after having been dismissed, certain |
| 3672 | heuristics applied by the "Android Keyboard (AOSP)" input method to | 3672 | heuristics applied by the "Android Keyboard (AOSP)" input method to |
| @@ -3680,6 +3680,14 @@ in the input method that can be easily reproduced by inserting lengthy | |||
| 3680 | documents into any text editor, with no real solution except avoiding | 3680 | documents into any text editor, with no real solution except avoiding |
| 3681 | edit suggestions from recently-reactivated input methods. | 3681 | edit suggestions from recently-reactivated input methods. |
| 3682 | 3682 | ||
| 3683 | ** The F3 key appears to be spontaneously activated. | ||
| 3684 | |||
| 3685 | It is possible that this is a product of your inadvertently contacting | ||
| 3686 | the back-facing fingerprint sensor, which generates F3 key events on | ||
| 3687 | devices manufactured by OnePlus and possibly others. Sadly, to the best | ||
| 3688 | of our knowledge such events cannot be distinguished from legitimate | ||
| 3689 | keypresses. | ||
| 3690 | |||
| 3683 | * Build-time problems | 3691 | * Build-time problems |
| 3684 | 3692 | ||
| 3685 | ** Configuration | 3693 | ** Configuration |
diff --git a/lisp/bindings.el b/lisp/bindings.el index 5a8c7cfafd7..6b34c5750c1 100644 --- a/lisp/bindings.el +++ b/lisp/bindings.el | |||
| @@ -978,9 +978,8 @@ language you are using." | |||
| 978 | ;; It seems that they can't because they're handled via | 978 | ;; It seems that they can't because they're handled via |
| 979 | ;; special-event-map which is used at very low-level. -stef | 979 | ;; special-event-map which is used at very low-level. -stef |
| 980 | (global-set-key [delete-frame] 'handle-delete-frame) | 980 | (global-set-key [delete-frame] 'handle-delete-frame) |
| 981 | (global-set-key [iconify-frame] 'ignore-event) | 981 | (global-set-key [iconify-frame] 'ignore) |
| 982 | (global-set-key [make-frame-visible] 'ignore-event) | 982 | (global-set-key [make-frame-visible] 'ignore) |
| 983 | |||
| 984 | 983 | ||
| 985 | ;These commands are defined in editfns.c | 984 | ;These commands are defined in editfns.c |
| 986 | ;but they are not assigned to keys there. | 985 | ;but they are not assigned to keys there. |
diff --git a/lisp/term/android-win.el b/lisp/term/android-win.el index bab6b6b9ff0..3e0f71abf91 100644 --- a/lisp/term/android-win.el +++ b/lisp/term/android-win.el | |||
| @@ -618,5 +618,15 @@ accessible to other programs." | |||
| 618 | :ccl-encoder 'android-encode-jni) | 618 | :ccl-encoder 'android-encode-jni) |
| 619 | 619 | ||
| 620 | 620 | ||
| 621 | ;; Default key definitions. | ||
| 622 | |||
| 623 | ;; Suppress KEYCODE_NOTIFICATION, which has been observed to be | ||
| 624 | ;; spontaneously generated on certain tablets, so that the user may not | ||
| 625 | ;; be disturbed by intrusive messages when it is registered. | ||
| 626 | (global-set-key [KEYCODE_NOTIFICATION] #'ignore) | ||
| 627 | (global-set-key [\83] #'ignore) ; KEYCODE_NOTIFICATION on pre-Honeycomb | ||
| 628 | ; releases. | ||
| 629 | |||
| 630 | |||
| 621 | (provide 'android-win) | 631 | (provide 'android-win) |
| 622 | ;; android-win.el ends here. | 632 | ;; android-win.el ends here. |