mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
add modify to the Selection interface
This commit is contained in:
parent
46573df890
commit
2ef846b09f
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue