Skip to content
Myr

Fix bug where certain keys (pgup/pgdown/home/end/etc) weren't being sent

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Christian Rocha · committed by Christian Rocha · parent 97ae9c6 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:key.go+1 added-1 removed
247 unmodified lines
248 hex := fmt.Sprintf("%x", buf[:numBytes])249250 // Some of these need special handling251 if k, ok := hexes[hex]; ok {252 return k, nil252 return KeyMsg(k), nil253 }254255 // Get unicode value256 char, _ := utf8.DecodeRune(buf[:])
29 unmodified lines