From ca4320e7900a4b8414fbae5771cd062ab9472dd0 Mon Sep 17 00:00:00 2001 From: 1024jp <1024jp@wolfrosch.com> Date: Sat, 2 Dec 2023 16:36:03 +0900 Subject: [PATCH] Add more symbols for special keys --- CHANGELOG.md | 5 ++--- CotEditor/Sources/Shortcut.swift | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d4f6fd83..4e82232eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,11 @@ - -Change Log -========================== +# Change Log 4.7.0 (unreleased) -------------------------- ### Improvements +- [trivial] Add shortcut symbols for special keys not on common keyboards. - [rc] Display the Globe symbol instead of “fn” for shortcuts in the Quick Action bar if the user keyboard is supposed to have the Globe key (thanks to Katsumi Kishikawa!). diff --git a/CotEditor/Sources/Shortcut.swift b/CotEditor/Sources/Shortcut.swift index 832dba954..7c3f1e1c2 100644 --- a/CotEditor/Sources/Shortcut.swift +++ b/CotEditor/Sources/Shortcut.swift @@ -314,6 +314,22 @@ struct Shortcut { .f17, .f18, .f19, + .f20, + .f21, + .f22, + .f23, + .f24, + .f25, + .f26, + .f27, + .f28, + .f29, + .f30, + .f31, + .f32, + .f33, + .f34, + .f35, ] @@ -356,6 +372,22 @@ struct Shortcut { .f17: "F17", .f18: "F18", .f19: "F19", + .f20: "F20", + .f21: "F21", + .f22: "F22", + .f23: "F23", + .f24: "F24", + .f25: "F25", + .f26: "F26", + .f27: "F27", + .f28: "F28", + .f29: "F29", + .f30: "F30", + .f31: "F31", + .f32: "F32", + .f33: "F33", + .f34: "F34", + .f35: "F35", .help: "Help", .space: String(localized: "Space", comment: "keyboard key name"), .mic: "🎤︎", // U+1F3A4, U+FE0E