mirror of
https://github.com/ankitects/anki.git
synced 2025-11-10 14:47:12 -05:00
Do not update/activate Autocomplete on Control+C,A,V
This commit is contained in:
parent
63dc42cff6
commit
cdc4fd0ef8
1 changed files with 2 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
import TagInput from "./TagInput.svelte";
|
||||
import WithAutocomplete from "./WithAutocomplete.svelte";
|
||||
import ButtonToolbar from "components/ButtonToolbar.svelte";
|
||||
import { controlPressed } from "lib/keys";
|
||||
import type { Tag as TagType } from "./tags";
|
||||
import { attachId, getName } from "./tags";
|
||||
|
||||
|
|
@ -220,7 +221,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
}
|
||||
|
||||
function isPrintableKey(event: KeyboardEvent): boolean {
|
||||
return event.key.length === 1;
|
||||
return event.key.length === 1 && !controlPressed(event);
|
||||
}
|
||||
|
||||
function isDeletionKey(event: KeyboardEvent): boolean {
|
||||
|
|
|
|||
Loading…
Reference in a new issue