Fixed issue with X backend not recognizing key repeats

This commit is contained in:
Sasha Koshka 2023-02-09 17:26:36 -05:00
parent e3aea7fc9e
commit 6e7cf285cc
2 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ func (window *Window) handleKeyRelease (
untypedEvent := nextEvents[0]
if untypedEvent.Err == nil {
typedEvent, ok :=
untypedEvent.Event.(xproto.KeyReleaseEvent)
untypedEvent.Event.(xproto.KeyPressEvent)
if ok && typedEvent.Detail == keyEvent.Detail &&
typedEvent.Event == keyEvent.Event &&

View File

@ -145,7 +145,7 @@ var noteForKey = map[input.Key] music.Note {
'.': 60,
';': 61,
'/': 62,
'\'': 63,
'\'': 63,
'1': 56,
'q': 57,