summaryrefslogtreecommitdiff
path: root/qutebrowser/keyinput/eventfilter.py
AgeCommit message (Collapse)Author
2021-08-26Automatically rewrite enumsFlorian Bruhin
See #5904
2021-08-26Blanket PyQt5 -> PyQt6Florian Bruhin
2021-02-03Revert "Pass through keys when a context menu is open"Florian Bruhin
This reverts commit 708a7630e78251e9df9ae2b69796bad6c88ae7af.
2021-02-03Pass through keys when a context menu is openFlorian Bruhin
2021-01-26doc: Switch URLs to httpsFlorian Bruhin
2021-01-20Bump copyright yearsFlorian Bruhin
Closes #6015
2021-01-11Add objects.qapp to avoid needing to None-checkFlorian Bruhin
We know that QApplication.instance() will always be non-None for practical purposes, but the stubs now (correctly) declare it as Optional. See https://github.com/stlehmann/PyQt5-stubs/pull/126
2020-10-28mypy: use from-import style for typingTim Brown
Update files in `keyinput`, `mainwindow`, and `misc`. See #5396
2020-05-09mypy: Fix typing around eventfiltersFlorian Bruhin
See #5368
2020-04-21Micro-optimize global eventFilterFlorian Bruhin
Might not make a big difference, but probably worth it, given that this can be called a lot when there are events coming to Qt. Based on a couple of assumptions: - We won't be interested in most events - Very often, events are not going to a QWindow, so we discard them as early as possible. - Very often, it's an event of a type we're not interested in, so we also discard those as early as possible. - "not self._activated" happens rarely. - "if typ not in self._handlers:" is significantly faster than try/except KeyError - try:/except: is only needed around the handler call itself, as we can be reasonably certain the code above won't raise an exception. See #5376
2020-01-13Add types for eventfilter/quitterFlorian Bruhin
2020-01-13Move EventFilter out of app.pyFlorian Bruhin