fix(client): Chromeで検索ダイアログで変換確定するとそのまま検索されてしまう

Fix #9598
This commit is contained in:
tamaina 2023-01-28 06:15:29 +00:00
parent 7190bd00c9
commit 8282bbd07c
2 changed files with 4 additions and 0 deletions

View file

@ -88,6 +88,8 @@ const onInput = (ev: KeyboardEvent) => {
emit('change', ev);
};
const onKeydown = (ev: KeyboardEvent) => {
if (ev.isComposing || ev.key === 'Process' || ev.keyCode === 229) return;
emit('keydown', ev);
if (ev.code === 'Enter') {

View file

@ -119,6 +119,8 @@ export default defineComponent({
context.emit('change', ev);
};
const onKeydown = (ev: KeyboardEvent) => {
if (ev.isComposing || ev.key === 'Process' || ev.keyCode === 229) return;
context.emit('keydown', ev);
if (ev.code === 'Enter') {