Skip to content

Commit

Permalink
Fix issue when a key name could be unknown
Browse files Browse the repository at this point in the history
Fixes #89
  • Loading branch information
andydotxyz committed Jul 11, 2024
1 parent cee53fe commit 6d90247
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions input.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ func (t *Terminal) TypedShortcut(s fyne.Shortcut) {
if ds, ok := s.(*desktop.CustomShortcut); ok {
t.ShortcutHandler.TypedShortcut(s) // it's not clear how we can check if this consumed the event

// handle CTRL+A to CTRL+_ and everything inbetween
if ds.Modifier == fyne.KeyModifierControl {
// handle CTRL+A to CTRL+_ and everything in-between
if ds.Modifier == fyne.KeyModifierControl && len(ds.KeyName) > 0 {
char := ds.KeyName[0]
off := char - 'A' + 1
switch {
Expand Down

0 comments on commit 6d90247

Please sign in to comment.