This commit is contained in:
Chris
2025-05-06 16:37:15 +10:00
parent 29131ec1f9
commit aa60b358c1
+2 -1
View File
@@ -412,7 +412,7 @@ class Popup extends HTMLSpanElement {
if (document.activeElement?.type=='text' || document.activeElement?.type=='textarea') {
if (this.floating_window.contains(document.activeElement) || this.contains(document.activeElement)) return
}
if (this.state!=State.IDLE && this.state!=State.TINY) {
if (this.state!=State.INACTIVE && this.state!=State.TINY) {
this.eat_event(e)
}
}
@@ -420,6 +420,7 @@ class Popup extends HTMLSpanElement {
on_key_down(e) {
if (document.activeElement?.type=='text' || document.activeElement?.type=='textarea') {
if (this.floating_window.contains(document.activeElement) || this.contains(document.activeElement)) return
if (this.state==State.INACTIVE && this.state==State.TINY) return
}
if (this.state==State.FILTER || this.state==State.TEXT) {
if (e.key=='Enter') {