summaryrefslogtreecommitdiff
path: root/qutebrowser/keyinput/eventfilter.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-02-03 21:25:20 +0100
committerFlorian Bruhin <me@the-compiler.org>2021-02-03 21:25:45 +0100
commit708a7630e78251e9df9ae2b69796bad6c88ae7af (patch)
tree11be2a8c32f07dcfb056bc095c11a2176b08d739 /qutebrowser/keyinput/eventfilter.py
parent050e24b1bef058f51f58cc977d14adc0571569ef (diff)
downloadqutebrowser-708a7630e78251e9df9ae2b69796bad6c88ae7af.tar.gz
qutebrowser-708a7630e78251e9df9ae2b69796bad6c88ae7af.zip
Pass through keys when a context menu is open
Diffstat (limited to 'qutebrowser/keyinput/eventfilter.py')
-rw-r--r--qutebrowser/keyinput/eventfilter.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/qutebrowser/keyinput/eventfilter.py b/qutebrowser/keyinput/eventfilter.py
index 4d016bea6..27973ad9d 100644
--- a/qutebrowser/keyinput/eventfilter.py
+++ b/qutebrowser/keyinput/eventfilter.py
@@ -69,6 +69,11 @@ class EventFilter(QObject):
# Some other window (print dialog, etc.) is focused so we pass the
# event through.
return False
+
+ if objects.qapp.activePopupWidget() is not None:
+ # A context menu or similar is open, so we pass the even through.
+ return False
+
try:
man = modeman.instance('current')
return man.handle_event(event)