Skip to content

Commit

Permalink
home/end shortcuts should always clear selection
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth committed Aug 3, 2023
1 parent 630c359 commit 89354b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions widget/entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -970,6 +970,7 @@ func (e *Entry) registerShortcut() {

// Cmd+left, Cmd+right shortcuts behave like Home and End keys on Mac OS
shortcutHomeEnd := func(s fyne.Shortcut) {
e.selecting = false
if s.(*desktop.CustomShortcut).KeyName == fyne.KeyLeft {
e.typedKeyHome()
} else {
Expand Down

0 comments on commit 89354b2

Please sign in to comment.