fix backspace (#231)

This commit is contained in:
Liam Galvin 2019-02-20 06:46:18 +00:00 committed by GitHub
parent d91a17c74b
commit 597c2dcf5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ func (gui *GUI) key(w *glfw.Window, key glfw.Key, scancode int, action glfw.Acti
if modsPressed(mods, glfw.ModAlt) {
gui.terminal.Write([]byte{0x17}) // ctrl-w/delete word
} else {
gui.terminal.Write([]byte{0x8})
gui.terminal.Write([]byte{0x7f}) //0x7f is DEL
}
case glfw.KeyUp:
if modStr != "" {