Skip to content

Commit

Permalink
fix: cancel when escape (#986)
Browse files Browse the repository at this point in the history
  • Loading branch information
hexaltation authored May 16, 2024
1 parent 1d55b5b commit bb249ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/client/ui/ColumnFilterMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,10 @@ export function columnFilterMenu(owner: IDisposableOwner, opts: IFilterMenuOptio
dom.onDispose(() => cancel ? doCancel() : doSave()),
dom.onKeyDown({
Enter: () => onClose(),
Escape: () => onClose(),
Escape: () => {
cancel = true;
onClose();
},
}),

// Filter by range
Expand Down

0 comments on commit bb249ff

Please sign in to comment.