add modify to the Selection interface

This commit is contained in:
ANH 2020-08-11 03:32:58 +03:00
parent 46573df890
commit 2ef846b09f

View file

@ -47,6 +47,10 @@ function triggerKeyTimer() {
}, 600); }, 600);
} }
interface Selection {
modify(s: string, t: string, u: string): void;
}
function onKey(evt: KeyboardEvent) { function onKey(evt: KeyboardEvent) {
// esc clears focus, allowing dialog to close // esc clears focus, allowing dialog to close
if (evt.which === 27) { if (evt.which === 27) {