about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2018-03-23T15·55+0800
committerChris Feng <chris.w.feng@gmail.com>2018-03-23T15·55+0800
commit10eb27eddcfdea1ec27382ea74625af867ceca61 (patch)
treed0a69df4ebbcc54f0207452566ef1ba610e9c361
parent02b1be7160051610a542764ec392e3a50f23fb5a (diff)
Fix local simulation keys
* exwm-input.el (exwm-input--on-KeyPress-line-mode): Do not test
`exwm-mode-map' to see if a key should be forwarded to Emacs as it's
overridden when local simulation keys are present.
-rw-r--r--exwm-input.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/exwm-input.el b/exwm-input.el
index 504307768c2d..dae0153e5427 100644
--- a/exwm-input.el
+++ b/exwm-input.el
@@ -567,7 +567,7 @@ instead."
                      ;;
                      (memq event exwm-input--global-prefix-keys)
                      (memq event exwm-input-prefix-keys)
-                     (lookup-key exwm-mode-map (vector event))
+                     (lookup-key (current-local-map) (vector event))
                      (gethash event exwm-input--simulation-keys)))
         (setq mode xcb:Allow:AsyncKeyboard)
         (exwm-input--cache-event event))