mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
fix: cancel when escape (#986)
This commit is contained in:
parent
1d55b5bcce
commit
bb249ff462
@ -130,7 +130,10 @@ export function columnFilterMenu(owner: IDisposableOwner, opts: IFilterMenuOptio
|
|||||||
dom.onDispose(() => cancel ? doCancel() : doSave()),
|
dom.onDispose(() => cancel ? doCancel() : doSave()),
|
||||||
dom.onKeyDown({
|
dom.onKeyDown({
|
||||||
Enter: () => onClose(),
|
Enter: () => onClose(),
|
||||||
Escape: () => onClose(),
|
Escape: () => {
|
||||||
|
cancel = true;
|
||||||
|
onClose();
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
|
|
||||||
// Filter by range
|
// Filter by range
|
||||||
|
Loading…
Reference in New Issue
Block a user