Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

key sequences in apps don't work #99

Open
xpusostomos opened this issue Dec 19, 2024 · 0 comments
Open

key sequences in apps don't work #99

xpusostomos opened this issue Dec 19, 2024 · 0 comments

Comments

@xpusostomos
Copy link

As an emacs project, one would hope one could support emacs keystrokes in other apps... the trouble is, it doesn't seem like key sequences work. One I miss a lot is C-x h, which is select all. However it doesn't seem to work.

(setq sim-key-basic
      ;; movement, cursor
      '(([?\C-b] . [left])
        ([?\C-f] . [right])
        ([?\C-p] . [up])
        ([?\C-n] . [down])
	((kbd "C-x h") . [C-a])))

(defun cc/exwm-manage-finish ()
  (if exwm-class-name
      (cond 
       ((or (string= exwm-class-name "Google-chrome")
	    (string= exwm-class-name "Firefox"))
	(exwm-input-set-local-simulation-keys sim-key-basic)))))

Before I used exwm, I used various key mappers under X11 which could do that. The trouble is, they "eat" the C-x, even if it doesn't form a known key sequence. That's really annoying under exwm because most things you want exwm to handle, unlike with other window managers where eating C-x isn't as annoying. So it would stop things like C-x C-b working in many cases, so those solutions are unusable under exwm. So it would be really great for exwm to support them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant