Closed philipstarkey closed 6 years ago
Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).
Resolves issue #59 (each QtCore.QEvent.KeyPress and QtCore.QEvent.KeyRelease event was handled twice).
→ \<\<cset a67c0c20bdbc2450600a914b360b67be3e36b67d>>
Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).
Merged in cbillington/runmanager/QShortcuts (pull request #23)
Use QShortcuts for keyboard shortcuts, resolving issue #59
Approved-by: Russell Anderson russell.anderson@monash.edu
→ \<\<cset 63f9a822ad41e6ac5b9378de84bc029af5fcd96d>>
Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).
Use QShortcuts for keyboard shortcuts, resolving issue #59
→ \<\<cset 0a3768cd7a22e68ff62d265957e9cca956c65cbd>>
Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).
Merged in cbillington/runmanager/QShortcuts (pull request #23)
Use QShortcuts for keyboard shortcuts, resolving issue #59
Approved-by: Russell Anderson russell.anderson@monash.edu
→ \<\<cset 63f9a822ad41e6ac5b9378de84bc029af5fcd96d>>
Original report (archived issue) by Russell Anderson (Bitbucket: rpanderson, GitHub: rpanderson).
Since Qt5 (pull request #9), keypress events have been registered twice. Below I have debugged this by adding
logger.info
lines toon_keyPress
andon_keyRelease
.Pressing F5 once used to (up to and including e2b367f60e5fa8029309c1729645c7022d1c3c58) result in:
... but now results in (6459a3ca2ad93fbfd79edcb6dd114cc0b595a3d5 and beyond):
To properly intercept the
QtCore.QEvent.KeyPress
and not have it handled twice,notify
ofKeyPressQApplication
should return 1 (orTrue
) for relevant events SO.