jun7 / wyeb

a vim-like webkit2gtk web browser
GNU General Public License v3.0
105 stars 6 forks source link

Caps lock binded to escape don't function as escape #42

Closed toniz4 closed 3 years ago

toniz4 commented 3 years ago

I have my esc key binded to escape, but in wyeb it doesn't work.

jun7 commented 3 years ago

I tested it as below and key->is_modifier was true.

xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'

How do you bind it?

jun7 commented 3 years ago

Ah I had missed reset mod. Reset modmap and xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape' works on wyeb.

toniz4 commented 3 years ago

I use setxkbmap to to this, with this command: setxkbmap -model thinkpad60 -layout br -option caps:escape_shifted_capslock

jun7 commented 3 years ago

Hmm it makes is_modifier == true.

toniz4 commented 3 years ago

Using xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape' it works as intended, but it should work without it, right? Every other program works without xmodmap.

jun7 commented 3 years ago

I've found setxkbmap -option caps:escape works. So I'm stuck with what to support such a nonsense key event. ESC is not modifier.

toniz4 commented 3 years ago

Yup, it works. Maybe it's not needed to support this obscure option, either way i never use it.