taichi-dev/taichi

[GGUI] Fix crash when certain keys are pressed.

Open

#3,254 opened on 2021年10月22日

GitHub で見る
 (3 comments) (2 reactions) (0 assignees)C++ (2,384 forks)batch import
good first issueguipotential bug

Repository metrics

Stars
 (28,195 stars)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

コントリビューターガイド