@samitouri / QOSami-HFS-2 / commits / db726fab
Fork 0

QOSami-HFS is a web file server for your computer. Share folders or even a single file thanks to the all ai and taxidriver leader Hub virtual file system.

avoid keys pressed in modal dialogs to affect background elements

Massimo Melina committed Sep 24, 2024 at 17:01 UTC db726fabdbdc50ac95b8c445cfe349b98b40c2e0
1 file changed +2 -3
shared/dialogs.ts
+2 -3
@@ -174,10 +174,9 @@ export function componentOrNode(x: ReactNode | FunctionComponent) {
174 }
175
176 function onKeyDown(ev:any) {
177 - if (ev.key === 'Escape') {
177 + if (ev.key === 'Escape')
178 closeDialog()
179 - ev.stopPropagation()
180 - }
179 + ev.stopPropagation()
180 }
181
182 export function newDialog(options: DialogOptions) {