Skip to content

Commit ece12c4

Browse files
authored
Merge pull request #548 from booth-w/fix-sort-hotkey
fix sort options hotkey
2 parents 820140a + a553553 commit ece12c4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/internal/key_function.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,16 +262,14 @@ func (m *model) sortOptionsKey(msg string) {
262262
switch msg {
263263
case containsKey(msg, hotkeys.OpenSortOptionsMenu):
264264
m.cancelSortOptions()
265-
case containsKey(msg, hotkeys.CancelTyping):
265+
case containsKey(msg, hotkeys.Quit):
266266
m.cancelSortOptions()
267-
case containsKey(msg, hotkeys.ConfirmTyping):
267+
case containsKey(msg, hotkeys.Confirm):
268268
m.confirmSortOptions()
269269
case containsKey(msg, hotkeys.ListUp):
270270
m.sortOptionsListUp()
271271
case containsKey(msg, hotkeys.ListDown):
272272
m.sortOptionsListDown()
273-
case containsKey(msg, hotkeys.Quit):
274-
m.cancelSortOptions()
275273
}
276274
}
277275

0 commit comments

Comments
 (0)