taichi-dev/taichi

[GGUI] Fix crash when certain keys are pressed.

Open

#3.254 geöffnet am 22. Okt. 2021

Auf GitHub ansehen
 (3 Kommentare) (2 Reaktionen) (0 zugewiesene Personen)C++ (2.384 Forks)batch import
good first issueguipotential bug

Repository-Metriken

Stars
 (28.195 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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.

Contributor Guide