Vimium: Firefox Vimium Mac Alt hotkey not working

Created on 6 Dec 2018  路  6Comments  路  Source: philc/vimium

I am using Vimium in Firefox Dev edition 65.0b1 - on Mac OS X. The a- hotkey is not working with the alt/option key.

Most helpful comment

Vimium is unable to detect mappings using Option (Alt) key as modifier on macOS unless "Ignore keyboard layout" setting is checked. Otherwise it uses KeyboardEvent.key to identify the key press which means e.g. <a-p> is identified as letter 蟺 on macOS since Option key is used to type additional characters. See relevant code:

https://github.com/philc/vimium/blob/ac5f9d3407bcf07c50a0119aede916fdd561f224/lib/keyboard_utils.js#L22-L23

All 6 comments

+1 Running Chrome Version 71.0.3578.98 on a mac.

+1 for Chrome Version 72.0.3626.121 (Official Build) (64-bit)

<a-*> not working for me.

EDIT: If you need a workaround, add these mappings in the Vimium options:
chrome-extension://dbepggeogbaibhgnhhndojpepiihcmeb/pages/options.html

map <c-p> togglePinTab
map <c-m> toggleMuteTab

Vimium is unable to detect mappings using Option (Alt) key as modifier on macOS unless "Ignore keyboard layout" setting is checked. Otherwise it uses KeyboardEvent.key to identify the key press which means e.g. <a-p> is identified as letter 蟺 on macOS since Option key is used to type additional characters. See relevant code:

https://github.com/philc/vimium/blob/ac5f9d3407bcf07c50a0119aede916fdd561f224/lib/keyboard_utils.js#L22-L23

@rakyi So will <a-蟺> work on macOS?

@gdh1995 didn't work for me. I just mapped to ctrl keys.
map <c-p> togglePinTab map <c-m> toggleMuteTab

+1 Running Firefox 78.0.1 on Linux, Vimium 1.66. Wanted to bind

Was this page helpful?
0 / 5 - 0 ratings