bluescan / tacentview

An image and texture viewer for tga, png, apng, exr, dds, pvr, ktx, ktx2, astc, pkm, qoi, gif, hdr, jpg, tif, ico, webp, and bmp files. Uses Dear ImGui, OpenGL, and Tacent. Useful for game devs as it displays information like the presence of an alpha channel and querying specific pixels for their colour.
ISC License
378 stars 36 forks source link

Delete confirmation dialog doesn't react to keyboard #93

Closed kutu closed 1 year ago

kutu commented 1 year ago
bluescan commented 1 year ago

85c1b2d2a5653cf7c8c7695087c6fbc7a9688b52 Modifies focus behaviour for this dialog and the shift-delete dialog. Focus goes to the OK. Enter deletes the file (not built-in in ImGui as it requires a custom button wrapper, but I prefer it) .

Tab usually cycles through input widgets only (again, in ImGui), but dir keys can be used instead to select Cancel. Esc is also not 'close' by default, so will need to select Cancel and press Space/Enter. In any case, can now use dir keys and space/enter to press selected button.