taichi-dev/taichi

[GGUI] Fix crash when certain keys are pressed.

Open

#3254 aperta il 22 ott 2021

Vedi su GitHub
 (3 commenti) (2 reazioni) (0 assegnatari)C++ (2384 fork)batch import
good first issueguipotential bug

Metriche repository

Star
 (28.195 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

GGUI crashes when certain keys are pressed (The Windows key, for example).

Relevant code:

https://github.com/taichi-dev/taichi/blob/master/taichi/ui/common/input_handler.h https://github.com/taichi-dev/taichi/blob/master/taichi/ui/utils/utils.h

It would be great to support all of these keys, or at least add a try-catch to avoid the window from crashing.

Guida contributor