Skip to content

Commit 9203a8d

Browse files
authored
Improve localizations and fix recorder not allowing multiple modifiers when option is present (#187)
1 parent 528cd5c commit 9203a8d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"record_shortcut" = "设置快捷键";
22
"press_shortcut" = "按下快捷键";
3-
"keyboard_shortcut_used_by_menu_item" = "当前快捷键无法使用,因为它已被用作菜单项 “%@” 的快捷键。";
3+
"keyboard_shortcut_used_by_menu_item" = "当前快捷键无法使用,因为它已被用作菜单项“%@”的快捷键。";
44
"keyboard_shortcut_used_by_system" = "当前快捷键无法使用,因为它已被用作系统快捷键。";
5-
"keyboard_shortcuts_can_be_changed" = "可以在 “系统设置 › 键盘 › 键盘快捷键” 中更改大多数系统快捷键。";
6-
"keyboard_shortcut_disallowed" = "Option 修飾鍵必須與 Command 或 Control 組合使用。";
5+
"keyboard_shortcuts_can_be_changed" = "可以在“系统设置 › 键盘 › 键盘快捷键”中更改大多数系统快捷键。";
6+
"keyboard_shortcut_disallowed" = "Option键必须与Command键或Control键组合使用。";
77
"force_use_shortcut" = "强制使用";
88
"ok" = "好";
99
"space_key" = "空格";

Sources/KeyboardShortcuts/Localization/zh-TW.lproj/Localizable.strings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"keyboard_shortcut_used_by_menu_item" = "此快速鍵無法使用,因為它已被選單項目「%@」使用。";
44
"keyboard_shortcut_used_by_system" = "此快速鍵無法使用,因為它已被系統使用。";
55
"keyboard_shortcuts_can_be_changed" = "可以在「系統設定 › 鍵盤 › 鍵盤快速鍵」中更改大多數的系統快速鍵。";
6-
"keyboard_shortcut_disallowed" = "Option 鍵必須與 Command 或 Control 鍵組合使用。";
6+
"keyboard_shortcut_disallowed" = "Option鍵必須與Command鍵或Control鍵組合使用。";
77
"force_use_shortcut" = "強制使用";
88
"ok" = "好";
99
"space_key" = "空格";

Sources/KeyboardShortcuts/Shortcut.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ extension KeyboardShortcuts.Shortcut {
117117

118118
// If Option is present, ensure there's at least one modifier other than Option and Shift
119119
let otherModifiers: NSEvent.ModifierFlags = [.command, .control, .function, .capsLock]
120-
return !modifiers.isDisjoint(with: otherModifiers)
120+
return modifiers.isDisjoint(with: otherModifiers)
121121
}
122122

123123
/**

0 commit comments

Comments
 (0)