mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-25 23:45:13 +00:00
parent
7190bd00c9
commit
8282bbd07c
2 changed files with 4 additions and 0 deletions
|
@ -88,6 +88,8 @@ const onInput = (ev: KeyboardEvent) => {
|
||||||
emit('change', ev);
|
emit('change', ev);
|
||||||
};
|
};
|
||||||
const onKeydown = (ev: KeyboardEvent) => {
|
const onKeydown = (ev: KeyboardEvent) => {
|
||||||
|
if (ev.isComposing || ev.key === 'Process' || ev.keyCode === 229) return;
|
||||||
|
|
||||||
emit('keydown', ev);
|
emit('keydown', ev);
|
||||||
|
|
||||||
if (ev.code === 'Enter') {
|
if (ev.code === 'Enter') {
|
||||||
|
|
|
@ -119,6 +119,8 @@ export default defineComponent({
|
||||||
context.emit('change', ev);
|
context.emit('change', ev);
|
||||||
};
|
};
|
||||||
const onKeydown = (ev: KeyboardEvent) => {
|
const onKeydown = (ev: KeyboardEvent) => {
|
||||||
|
if (ev.isComposing || ev.key === 'Process' || ev.keyCode === 229) return;
|
||||||
|
|
||||||
context.emit('keydown', ev);
|
context.emit('keydown', ev);
|
||||||
|
|
||||||
if (ev.code === 'Enter') {
|
if (ev.code === 'Enter') {
|
||||||
|
|
Loading…
Reference in a new issue