SFML/imgui-sfml

CapsLock key error

frolish opened this issue · 3 comments

imgui-SFML.cpp line 307

IM_ASSERT(key >= 0 && key < IM_ARRAYSIZE(io.KeysDown));

On this line, an exception is thrown when CapsLock are entered.
The key code for CapsLock in sfml is -1.

Hello
What OS are you using? Can't repro on Linux

Windows 10 Pro 20H2 x64
build: 19042.985

This commit fixes it. 48e7db7
v2.4 will contain it and will be released very soon.