mirror of https://github.com/liamg/aminal.git
fix home button
This commit is contained in:
parent
294e206ff5
commit
5df038d223
10
gui/input.go
10
gui/input.go
|
@ -167,10 +167,14 @@ func (gui *GUI) key(w *glfw.Window, key glfw.Key, scancode int, action glfw.Acti
|
||||||
'3', '~',
|
'3', '~',
|
||||||
})
|
})
|
||||||
case glfw.KeyHome:
|
case glfw.KeyHome:
|
||||||
if modStr == "" {
|
if gui.terminal.IsApplicationCursorKeysModeEnabled() {
|
||||||
gui.terminal.Write([]byte("\x1b[1~"))
|
if modStr == "" {
|
||||||
|
gui.terminal.Write([]byte("\x1b[1~"))
|
||||||
|
} else {
|
||||||
|
gui.terminal.Write([]byte(fmt.Sprintf("\x1b[1;%s~", modStr)))
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
gui.terminal.Write([]byte(fmt.Sprintf("\x1b[1;%s~", modStr)))
|
gui.terminal.Write([]byte("\x1b[H"))
|
||||||
}
|
}
|
||||||
case glfw.KeyEnd:
|
case glfw.KeyEnd:
|
||||||
if modStr == "" {
|
if modStr == "" {
|
||||||
|
|
Loading…
Reference in New Issue