]> git.eshelyaron.com Git - emacs.git/commitdiff
Update Android port
authorPo Lu <luangruo@yahoo.com>
Tue, 14 Mar 2023 11:51:42 +0000 (19:51 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 14 Mar 2023 11:51:42 +0000 (19:51 +0800)
* lisp/minibuffer.el (minibuffer-setup-on-screen-keyboard):
Handle cases where last-event-frame is a kbd macro.
* src/keyboard.c (lispy_function_keys): Remove duplicates.

lisp/minibuffer.el
src/keyboard.c

index ef0eb1ca108f0473e1191ce8d733370e00b46119..0055914105d43f514db913ba0ca98c5ce88030f1 100644 (file)
@@ -4598,9 +4598,10 @@ This is run upon minibuffer setup."
     (cancel-timer minibuffer-on-screen-keyboard-timer)
     (setq minibuffer-on-screen-keyboard-timer nil))
   (setq minibuffer-on-screen-keyboard-displayed nil)
-  (when (not (memq (device-class last-event-frame
-                               last-event-device)
-                   '(keyboard core-keyboard)))
+  (when (and (framep last-event-frame)
+             (not (memq (device-class last-event-frame
+                                      last-event-device)
+                        '(keyboard core-keyboard))))
     (setq minibuffer-on-screen-keyboard-displayed
           (frame-toggle-on-screen-keyboard (selected-frame) nil))))
 
index e376fa299dd8f6cdd9a36d08566495c57da6dfec..11c37372db76ac2a7f984cbfaa6c72bdc8141e59 100644 (file)
@@ -4996,8 +4996,6 @@ const char *const lispy_function_keys[] =
     [19]  = "up",
     [20]  = "down",
     [213] = "muhenkan",
-    [213] = "muhenkan",
-    [214] = "henkan",
     [214] = "henkan",
     [215] = "hiragana-katakana",
     [218] = "kana",