From cc8562496ad50f1b0fdfd54d82ba1dec59ec9c9a Mon Sep 17 00:00:00 2001 From: Zachary Vance Date: Mon, 25 May 2015 16:49:21 -0700 Subject: [PATCH] make shortcuts fit --- dist/flowy.js | 2 +- dist/flowy.unwrapped.js | 2 +- src/library/shortcut.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/flowy.js b/dist/flowy.js index 2382082..0be641a 100644 --- a/dist/flowy.js +++ b/dist/flowy.js @@ -307,7 +307,7 @@ var Shortcut = (function(document, _) { } var keybindingHTML = _.map(keybindings, function(keybinding) { - return _.template("<%= keybinding %>")({keybinding: _.escape(keybinding)}); + return _.template("<%= keybinding %>")({keybinding: _.escape(keybinding).replace(/\+/g, ' + ')}); }).join(",
"); if (options.allowRebind) { // Ugh, way too magic, how do I use an actual function here diff --git a/dist/flowy.unwrapped.js b/dist/flowy.unwrapped.js index dd1e013..3dc2344 100644 --- a/dist/flowy.unwrapped.js +++ b/dist/flowy.unwrapped.js @@ -306,7 +306,7 @@ var Shortcut = (function(document, _) { } var keybindingHTML = _.map(keybindings, function(keybinding) { - return _.template("<%= keybinding %>")({keybinding: _.escape(keybinding)}); + return _.template("<%= keybinding %>")({keybinding: _.escape(keybinding).replace(/\+/g, ' + ')}); }).join(",
"); if (options.allowRebind) { // Ugh, way too magic, how do I use an actual function here diff --git a/src/library/shortcut.js b/src/library/shortcut.js index 7269b87..cf2e92e 100644 --- a/src/library/shortcut.js +++ b/src/library/shortcut.js @@ -245,7 +245,7 @@ var Shortcut = (function(document, _) { } var keybindingHTML = _.map(keybindings, function(keybinding) { - return _.template("<%= keybinding %>")({keybinding: _.escape(keybinding)}); + return _.template("<%= keybinding %>")({keybinding: _.escape(keybinding).replace(/\+/g, ' + ')}); }).join(",
"); if (options.allowRebind) { // Ugh, way too magic, how do I use an actual function here -- 2.47.3