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:
thjbbvlt 2025-06-16 10:37:33 +02:00
parent 6588ab5d9d
commit d54e48beb8

View file

@ -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 ""