mirror of https://github.com/liamg/aminal.git
fix backspace (#231)
This commit is contained in:
parent
d91a17c74b
commit
597c2dcf5a
|
@ -219,7 +219,7 @@ func (gui *GUI) key(w *glfw.Window, key glfw.Key, scancode int, action glfw.Acti
|
||||||
if modsPressed(mods, glfw.ModAlt) {
|
if modsPressed(mods, glfw.ModAlt) {
|
||||||
gui.terminal.Write([]byte{0x17}) // ctrl-w/delete word
|
gui.terminal.Write([]byte{0x17}) // ctrl-w/delete word
|
||||||
} else {
|
} else {
|
||||||
gui.terminal.Write([]byte{0x8})
|
gui.terminal.Write([]byte{0x7f}) //0x7f is DEL
|
||||||
}
|
}
|
||||||
case glfw.KeyUp:
|
case glfw.KeyUp:
|
||||||
if modStr != "" {
|
if modStr != "" {
|
||||||
|
|
Loading…
Reference in New Issue