Support disabling default `exwm-mode-map' bindings

* exwm-input.el (exwm-input--on-KeyPress-line-mode): Use
`lookup-key' to check whether a the event is defined in the
`exwm-mode-map' keymap.
This commit is contained in:
Adrián Medraño Calvo 2018-03-05 00:00:00 +00:00
parent ad90af19a6
commit 7c9bc5d6d0

View file

@ -566,7 +566,7 @@ instead."
;;
(memq event exwm-input--global-prefix-keys)
(memq event exwm-input-prefix-keys)
(assq event (cdr exwm-mode-map))
(lookup-key exwm-mode-map (vector event))
(gethash event exwm-input--simulation-keys)))
(setq mode xcb:Allow:AsyncKeyboard)
(exwm-input--cache-event event))