aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPo Lu2024-06-10 15:37:58 +0800
committerPo Lu2024-06-10 15:39:57 +0800
commitb7b43931ee4263e81bdaf41da571b94e01d10eff (patch)
treef872561b05053c78e41bfd1f843f75978c14e2ea
parentd6ecabe23b752116e48e8fbb28ee6f47eef5ec18 (diff)
downloademacs-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/PROBLEMS10
-rw-r--r--lisp/bindings.el5
-rw-r--r--lisp/term/android-win.el10
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
3666position. There is no solution but installing a more 3666position. There is no solution but installing a more
3667cooperative--and preferably free--input method. 3667cooperative--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
3671When first reactivated in a window after having been dismissed, certain 3671When first reactivated in a window after having been dismissed, certain
3672heuristics applied by the "Android Keyboard (AOSP)" input method to 3672heuristics 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
3680documents into any text editor, with no real solution except avoiding 3680documents into any text editor, with no real solution except avoiding
3681edit suggestions from recently-reactivated input methods. 3681edit suggestions from recently-reactivated input methods.
3682 3682
3683** The F3 key appears to be spontaneously activated.
3684
3685It is possible that this is a product of your inadvertently contacting
3686the back-facing fingerprint sensor, which generates F3 key events on
3687devices manufactured by OnePlus and possibly others. Sadly, to the best
3688of our knowledge such events cannot be distinguished from legitimate
3689keypresses.
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.