edit/page: describe hotkey letter in save plugin
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 27 Dec 2020 01:39:12 +0000 (02:39 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Wed, 30 Dec 2020 23:22:16 +0000 (00:22 +0100)
Minor code cleanup of a magic value.

edit/page.js

index c3ece3c0fbf7ec81c54edb1a0994d4c63e0330a8..76328355a92a3bd195dfc9e974d1b33282f5175f 100644 (file)
@@ -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,