Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Fixed: Issue 3041 If you remove displayKey for Decrease Font Size shortcut, it will show up as Ctrl++ on Window #3331

Merged
merged 2 commits into from
Apr 16, 2013
Merged
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
4 changes: 2 additions & 2 deletions src/command/KeyBindingManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ define(function (require, exports, module) {
var displayStr;

if (brackets.platform === "mac") {
displayStr = descriptor.replace(/-/g, ""); // remove dashes
displayStr = descriptor.replace(/-(?!$)/g, ""); // remove dashes
displayStr = displayStr.replace("Ctrl", "\u2303"); // Ctrl > control symbol
displayStr = displayStr.replace("Cmd", "\u2318"); // Cmd > command symbol
displayStr = displayStr.replace("Shift", "\u21E7"); // Shift > shift symbol
Expand All @@ -280,7 +280,7 @@ define(function (require, exports, module) {
displayStr = descriptor.replace("Ctrl", Strings.KEYBOARD_CTRL); // Ctrl
displayStr = displayStr.replace("Shift", Strings.KEYBOARD_SHIFT); // Shift > shift symbol
displayStr = displayStr.replace("Space", Strings.KEYBOARD_SPACE); // Alt > option symbol
displayStr = displayStr.replace(/-/g, "+");
displayStr = displayStr.replace(/-(?!$)/g, "+");
}

return displayStr;
Expand Down