fix: テーブルにフォーカスがあり、通常状態であるときはキーイベントの伝搬を止める

This commit is contained in:
おさむのひと 2024-11-23 08:00:33 +09:00
parent 0fa0665d8e
commit 8628a4d592
1 changed files with 1 additions and 0 deletions

View File

@ -269,6 +269,7 @@ function onKeyDown(ev: KeyboardEvent) {
switch (state.value) { switch (state.value) {
case 'normal': { case 'normal': {
ev.preventDefault(); ev.preventDefault();
ev.stopPropagation();
const selectedCellAddress = selectedCell.value?.address ?? CELL_ADDRESS_NONE; const selectedCellAddress = selectedCell.value?.address ?? CELL_ADDRESS_NONE;
const max = availableBounds.value; const max = availableBounds.value;