From 3e511e095f8b9a1b4ad7f81c8673e5b61a207055 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sun, 27 Dec 2020 02:39:12 +0100 Subject: [PATCH] edit/page: describe hotkey letter in save plugin Minor code cleanup of a magic value. --- edit/page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.30.0