|
|
@ -76,6 +76,10 @@ useSelectedCellKeyupListener(active, (e: KeyboardEvent) => { |
|
|
|
switch (e.key) { |
|
|
|
switch (e.key) { |
|
|
|
case 'Enter': |
|
|
|
case 'Enter': |
|
|
|
e.stopPropagation() |
|
|
|
e.stopPropagation() |
|
|
|
|
|
|
|
// if expanded form is active skip resetting the active cell |
|
|
|
|
|
|
|
if (document.querySelector('.nc-drawer-expanded-form.active')) { |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
if (!open.value) { |
|
|
|
if (!open.value) { |
|
|
|
// open date picker |
|
|
|
// open date picker |
|
|
|
open.value = true |
|
|
|
open.value = true |
|
|
@ -89,6 +93,10 @@ useSelectedCellKeyupListener(active, (e: KeyboardEvent) => { |
|
|
|
} |
|
|
|
} |
|
|
|
break |
|
|
|
break |
|
|
|
case 'Escape': |
|
|
|
case 'Escape': |
|
|
|
|
|
|
|
// if expanded form is active skip resetting the active cell |
|
|
|
|
|
|
|
if (document.querySelector('.nc-drawer-expanded-form.active')) { |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
if (open.value) { |
|
|
|
if (open.value) { |
|
|
|
e.stopPropagation() |
|
|
|
e.stopPropagation() |
|
|
|
open.value = false |
|
|
|
open.value = false |
|
|
|