taichi-dev/taichi

[GGUI] Fix crash when certain keys are pressed.

Open

#3 254 ouverte le 22 oct. 2021

Voir sur GitHub
 (3 commentaires) (2 réactions) (0 assignés)C++ (2 384 forks)batch import
good first issueguipotential bug

Métriques du dépôt

Stars
 (28 195 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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.

Guide contributeur