mirror of https://github.com/liamg/aminal.git
add alt backspace
This commit is contained in:
parent
0ab63e3946
commit
b62910e8cf
|
@ -227,7 +227,11 @@ func (gui *GUI) key(w *glfw.Window, key glfw.Key, scancode int, action glfw.Acti
|
|||
})
|
||||
}
|
||||
case glfw.KeyBackspace:
|
||||
gui.terminal.Write([]byte{0x08})
|
||||
if modsPressed(mods, glfw.ModAlt) {
|
||||
gui.terminal.Write([]byte{0x17}) // ctrl-w/delete word
|
||||
} else {
|
||||
gui.terminal.Write([]byte{0x8})
|
||||
}
|
||||
case glfw.KeyUp:
|
||||
if modStr != "" {
|
||||
gui.terminal.Write([]byte(fmt.Sprintf("\x1b[1;%sA", modStr)))
|
||||
|
|
Loading…
Reference in New Issue