Describe the bug
Unexpect exit of ggui after pressing Alt, Shift and Ctrl after using window.get_events in code to press ESC to exit.
To Reproduce
I want my ggui can be closed after I press ESC (or other keys such as r). However when I want to change to another window using Alt+Tab I find that the ggui exits wrongly.
It will fatally exit after pressing the button Alt, Shift or Ctrl (maybe not after the first press, but the second or the third press), and refer to the running information the key Super may also cause this error. Also, the problem happens both in my laptop and PC.
import taichi as ti
ti.init()
window = ti.ui.Window('TEST', (768, 512))
while window.running:
for e in window.get_events(ti.ui.PRESS):
if e.key == ti.ui.ESCAPE:
window.running = False
window.show()
By the way, code as below runs well without the function of pressing a button:
import taichi as ti
ti.init()
window = ti.ui.Window('TEST', (768, 512))
while window.running:
window.show()
Describe the bug Unexpect exit of ggui after pressing Alt, Shift and Ctrl after using
window.get_events
in code to pressESC
to exit.To Reproduce I want my ggui can be closed after I press
ESC
(or other keys such asr
). However when I want to change to another window usingAlt+Tab
I find that the ggui exits wrongly.It will fatally exit after pressing the button
Alt
,Shift
orCtrl
(maybe not after the first press, but the second or the third press), and refer to the running information the keySuper
may also cause this error. Also, the problem happens both in my laptop and PC.By the way, code as below runs well without the function of pressing a button:
Log All running information: