Cleanup knockout commands and replaced EventKeyCode with native KeyboardEvent.key

This commit is contained in:
djmaze 2020-09-17 17:47:35 +02:00
parent d06fed09d6
commit 7ac8143f34
9 changed files with 87 additions and 118 deletions

View file

@ -1,5 +1,3 @@
import { EventKeyCode } from 'Common/Enums';
/**
* @type {Object}
*/
@ -290,7 +288,7 @@ class HtmlEditor {
this.editor = CKEDITOR.appendTo(this.element, config);
this.editor.on('key', event => !(event && event.data && EventKeyCode.Tab === event.data.keyCode));
this.editor.on('key', event => !(event && event.data && 'Tab' == event.data.key));
if (window.FileReader) {
this.editor.on('drop', (event) => {