escape key doesnt trigger buffer input

This commit is contained in:
Felix Angell 2018-05-05 20:40:21 +01:00
parent e585c6044a
commit bd8bf44da6
4 changed files with 4 additions and 1 deletions

0
foo Normal file
View File

View File

@ -553,6 +553,9 @@ func (b *Buffer) processActionKey(key int) bool {
case sdl.K_CAPSLOCK:
CAPS_LOCK = !CAPS_LOCK
case sdl.K_ESCAPE:
return true
case sdl.K_RETURN:
if SUPER_DOWN {
// in sublime this goes

View File

@ -140,7 +140,7 @@ func (n *View) OnUpdate() bool {
return action.proc(n, []string{})
}
} else {
log.Println("warning, unimplemented shortcut ctrl +", string(unicode.ToLower(r)), actionName)
log.Println("warning, unimplemented shortcut ctrl +", string(unicode.ToLower(r)), " #", int(r), actionName)
}
}

BIN
phi.exe

Binary file not shown.