Skip to content

Commit

Permalink
#81
Browse files Browse the repository at this point in the history
  • Loading branch information
glushchenko committed Jan 11, 2018
1 parent ea32608 commit 8b2ec18
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions FSNotes/NotesTableView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,11 @@ class NotesTableView: NSTableView, NSTableViewDataSource,
}

override func performKeyEquivalent(with event: NSEvent) -> Bool {
if (
[28, 46, 40, 38].contains(event.keyCode) // j, k
&& event.modifierFlags.contains(NSEvent.ModifierFlags.command)) {
if ([kVK_ANSI_8, kVK_ANSI_J, kVK_ANSI_K].contains(Int(event.keyCode)) && event.modifierFlags.contains(NSEvent.ModifierFlags.command)) {
return true
}

if (event.keyCode == kVK_ANSI_M && event.modifierFlags.contains(.command) && event.modifierFlags.contains(.shift)) {
return true
}

Expand Down

0 comments on commit 8b2ec18

Please sign in to comment.