From f74b081fadd54c2803c8d7b73b9136ff4d58d0a4 Mon Sep 17 00:00:00 2001 From: juliandescottes Date: Sun, 7 May 2017 12:35:27 +0200 Subject: [PATCH] avoid sanitization for cheatsheet keys --- src/js/controller/dialogs/CheatsheetController.js | 3 ++- src/templates/dialogs/cheatsheet.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/js/controller/dialogs/CheatsheetController.js b/src/js/controller/dialogs/CheatsheetController.js index 2edbaadb..c38eaf6c 100644 --- a/src/js/controller/dialogs/CheatsheetController.js +++ b/src/js/controller/dialogs/CheatsheetController.js @@ -140,7 +140,8 @@ title : title, icon : descriptor.iconClass, description : description, - key : this.formatKey_(shortcut.getDisplayKey()), + // Avoid sanitization + '!key!' : this.formatKey_(shortcut.getDisplayKey()), className : shortcutClasses.join(' ') }); diff --git a/src/templates/dialogs/cheatsheet.html b/src/templates/dialogs/cheatsheet.html index bcbec7a4..a1dabf32 100644 --- a/src/templates/dialogs/cheatsheet.html +++ b/src/templates/dialogs/cheatsheet.html @@ -43,7 +43,7 @@ \ No newline at end of file