jtkDvlp / web-mode-edit-element

Helper-functions for attribute- and element-handling
GNU General Public License v2.0
19 stars 2 forks source link

Key binding for Shift-K #7

Open kenk-ccs opened 5 years ago

kenk-ccs commented 5 years ago

The keybinding ("C-K" web-mode-edit-element-elements-kill-siblings) doesn't work under emacs 26.1 (perhaps others but I haven't tested). The capital K isn't interpreted as a shift-k chord; emacs sees it as a plain k and thus maps ctrl-k to web-mode-edit-element-elements-kill-siblings. The fix is to specify the chord explicitly: ("C-S-k" web-mode-edit-element-elements-kill-siblings)

jtkDvlp commented 5 years ago

Thank you for your issue. Now it works for me.

Feel free to reopen the issue if it´s not working for you.

kenk-ccs commented 5 years ago

The change should be applied to the M-K binding as well: M-S-K

jtkDvlp commented 5 years ago

Yeah, I also expected that but control and meta bindings behave different. Do you have tried the M-K and M-k, for me it works?

kenk-ccs commented 5 years ago

It wasn't working until I mapped it via M-S-k locally

jtkDvlp commented 5 years ago

Mhh ok, I will research about this.