Skip to content

Commit

Permalink
Close folder edit dialog by pressing Esc
Browse files Browse the repository at this point in the history
close #8246
  • Loading branch information
BijinDev committed Jan 10, 2025
1 parent cfea2a4 commit ede0668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/gui/base/TextField.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export class TextField implements ClassComponent<TextFieldAttrs> {
onblur: (e: FocusEvent) => this.blur(e, a),
onkeydown: (e: KeyboardEvent) => {
const handled = useKeyHandler(e, a.keyHandler)
if (!isKeyPressed(e.key, Keys.F1, Keys.TAB)) {
if (!isKeyPressed(e.key, Keys.F1, Keys.TAB, Keys.ESC)) {
// When we are in a text field we don't want keys propagated up to act as hotkeys
e.stopPropagation()
}
Expand Down

0 comments on commit ede0668

Please sign in to comment.