Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Sources/KeyboardShortcuts/KeyboardShortcuts.swift
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,9 @@

private static func handleOnKeyDown(_ shortcut: Shortcut) {
guard !isPaused else {
NSAlert.showModal(
for: nil,
title: "keyboard_shortcut_used_by_other_action".localized)

Check warning on line 386 in Sources/KeyboardShortcuts/KeyboardShortcuts.swift

View workflow job for this annotation

GitHub Actions / lint

Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line (multiline_arguments_brackets)
return
}

Expand All @@ -407,6 +410,9 @@

private static func handleOnKeyUp(_ shortcut: Shortcut) {
guard !isPaused else {
NSAlert.showModal(
for: nil,
title: "keyboard_shortcut_used_by_other_action".localized)

Check warning on line 415 in Sources/KeyboardShortcuts/KeyboardShortcuts.swift

View workflow job for this annotation

GitHub Actions / lint

Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line (multiline_arguments_brackets)
return
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"record_shortcut" = "Record Shortcut";
"press_shortcut" = "Press Shortcut";
"keyboard_shortcut_used_by_other_action" = "This keyboard shortcut is already assigned to another action."
"keyboard_shortcut_used_by_menu_item" = "This keyboard shortcut cannot be used as it’s already used by the “%@” menu item.";
"keyboard_shortcut_used_by_system" = "This keyboard shortcut cannot be used as it’s already a system-wide keyboard shortcut.";
"keyboard_shortcuts_can_be_changed" = "Most system-wide keyboard shortcuts can be changed in “System Settings › Keyboard › Keyboard Shortcuts”.";
Expand Down