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

Commit 2a42e9e

Browse files
committed
Merge pull request #3331 from WebsiteDeveloper/Issue-3041
Fixed: Issue 3041 If you remove displayKey for Decrease Font Size shortcut, it will show up as Ctrl++ on Window
2 parents 3244c9f + 55fb95f commit 2a42e9e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/command/KeyBindingManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ define(function (require, exports, module) {
271271
var displayStr;
272272

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

286286
return displayStr;

0 commit comments

Comments
 (0)