From: Mischa POSLAWSKY Date: Sun, 27 Dec 2020 01:39:12 +0000 (+0100) Subject: edit/page: describe hotkey letter in save plugin X-Git-Tag: v5.1~22 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/3e511e095f8b9a1b4ad7f81c8673e5b61a207055?ds=sidebyside edit/page: describe hotkey letter in save plugin Minor code cleanup of a magic value. --- diff --git a/edit/page.js b/edit/page.js index c3ece3c..7632835 100644 --- a/edit/page.js +++ b/edit/page.js @@ -57,7 +57,7 @@ CKEDITOR.plugins.add('inlinesave', { ajaxpost.send(data); }, }); - editor.setKeystroke(CKEDITOR.CTRL + 83 /*S*/, 'inlinesave'); + editor.setKeystroke(CKEDITOR.CTRL + 'S'.charCodeAt(0), 'inlinesave'); editor.ui.addButton( 'Inlinesave', { command: 'inlinesave', label: editor.lang.save.toolbar,