mirror of
https://github.com/akiyosi/goneovim.git
synced 2025-06-20 16:15:46 +02:00
Add Hyper_L/R to the list of non-input keys
The current list of modifiers keys inside editor/input.go doesn't handle the keys Hyper_L or Hyper_R, typically mapped to Linux window manager actions. As now, at least on a Debian 12 with DWM setup, it insert a `�` character. This commit add the `Hyper_L` and `Hyper_R` keys to the list to avoid this behaviour. This is only made possible by the fact that the akiyosi's version of Qt bindings add these modifiers.
This commit is contained in:
parent
6588ab5d9d
commit
d54e48beb8
1 changed files with 2 additions and 0 deletions
|
@ -244,6 +244,8 @@ func (e *Editor) convertKey(event *gui.QKeyEvent) string {
|
|||
key == int(core.Qt__Key_Control) ||
|
||||
key == int(core.Qt__Key_Meta) ||
|
||||
key == int(core.Qt__Key_Shift) ||
|
||||
key == int(core.Qt__Key_Hyper_L) ||
|
||||
key == int(core.Qt__Key_Hyper_R) ||
|
||||
key == int(core.Qt__Key_Super_L) ||
|
||||
key == int(core.Qt__Key_Super_R) {
|
||||
return ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue