Skip to content

Commit

Permalink
Desktop arrangement is up/down now by default
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jan 15, 2024
1 parent 95ecf15 commit 227f801
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/desktops/desktops.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ func (d *desktops) Shortcuts() map[*fynedesk.Shortcut]func() {
}
}

mapping[&fynedesk.Shortcut{Name: "Switch to Previous Desktop", KeyName: fyne.KeyLeft, Modifier: fynedesk.UserModifier}] = func() {
mapping[&fynedesk.Shortcut{Name: "Switch to Previous Desktop", KeyName: fyne.KeyUp, Modifier: fynedesk.UserModifier}] = func() {
if d.current == 0 {
return
}
d.setDesktop(d.current - 1)
}
mapping[&fynedesk.Shortcut{Name: "Switch to Next Desktop", KeyName: fyne.KeyRight, Modifier: fynedesk.UserModifier}] = func() {
mapping[&fynedesk.Shortcut{Name: "Switch to Next Desktop", KeyName: fyne.KeyDown, Modifier: fynedesk.UserModifier}] = func() {
if d.current == deskCount-1 {
return
}
Expand Down

0 comments on commit 227f801

Please sign in to comment.