Remapped keys don't function?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Remapped keys don't function?

Russell Adams
Using stumpwm-20200715-git from Quicklisp with SBCL 1.4.9.

I've tried to remap the keys for Firefox to be more Emacs
friendly. I'm basing my configuration on the example in the
documentation.

  ;; Fix awful Firefox keybindings
  (define-remapped-keys
    '(("Firefox"
       ("M-w"   . "C-c")
       ("C-y"   . "C-v")
       ("M-<"   . "Home")
       ("M->"   . "End")
       ("C-s"   . "F3")
       ("C-r"   . "S-F3")
       ("C-g"   . "Escape")
       ("M-."   . "C-Tab")
       ("M-,"   . "C-S-Tab"))))

Unfortunately none of the remapped keys are working. Firefox
stubbornly stays with the defaults. I believe I had this working before.

I've connected with SLIME and been able to determine that the key
mappings are present and match the Firefox window.

STUMPWM> (all-windows)
(#S(TILE-WINDOW "emacs@maokai" #x2400023) #S(TILE-WINDOW "0:0.0 zsh" #x1400007)
 #S(TILE-WINDOW "adamsrl@:~" #x1600007)
 #S(TILE-WINDOW "conky (maokai)" #x1000001)
 #S(TILE-WINDOW "adamsrl@:~/.quicklisp/dists/quicklisp/software/stumpwm-20200715-git" #x2200007)
 #S(TILE-WINDOW "adamsrl@:~" #x2000007)
 #S(TILE-WINDOW "firefox x-grabkey at DuckDuckGo - Mozilla Firefox" #x1A00003)
 #S(TILE-WINDOW "root@maokai:/etc/portage" #x2600007)
 #S(TILE-WINDOW "adamsrl@:~" #x2800007)
 #S(TILE-WINDOW "Mumble -- 1.3.1" #x2A00006))

STUMPWM> (mapcar #'find-remap-keys-by-window (all-windows))
(NIL NIL NIL NIL NIL NIL
 ("Firefox"
  ("M-w"
   #S(KEY
      :KEYSYM 99
      :SHIFT NIL
      :CONTROL T
      :META NIL
      :ALT NIL
      :HYPER NIL
      :SUPER NIL))
      ....... skipping
  ("M-,"
   #S(KEY
      :KEYSYM 65289
      :SHIFT T
      :CONTROL T
      :META NIL
      :ALT NIL
      :HYPER NIL
      :SUPER NIL)))
      NIL NIL NIL)

Can someone provide some guidance on how to determine why they aren't
being passed on?

Thanks.

------------------------------------------------------------------
Russell Adams                            [hidden email]

PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/

Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

Reply | Threaded
Open this post in threaded view
|

Re: Remapped keys don't function?

Russell Adams
On Tue, Aug 18, 2020 at 10:22:28AM +0000, Victor Martinez wrote:
> I tried it (stumpwm from github) with "Tor Browser" using
>
> (define-remapped-keys
>   '(("Tor Browser" ("M-<"   . "Home") ("M->"   . "End")))
>
> and had no problems.

That's very interesting. I just updated Firefox, could it be they are
somehow preventing grab key events? I thought I had this working
previously.

I did dump out the keymaps matching the Firefox window, so I expected
they should be applied.

------------------------------------------------------------------
Russell Adams                            [hidden email]

PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/

Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3