Allow double click and intro to select a file.
Closed this issue · 8 comments
I can double-click to navigate into a folder, or use intro enter key when #def USE_EXPLORATION_BY_KEYS
, however, I cannot double-click or press enter to select the file.
Would it be possible to allow double-click/enter key to "press OK button" if the selected item is a file?
what do you mean by "intro" key ?
I meant the "enter" key, sorry, as defined here:
#define USE_EXPLORATION_BY_KEYS
// Enter key for open directory
#define IGFD_KEY_ENTER GLFW_KEY_ENTER
ok yes => to do
I just came here to add this very suggestion. Please add double-click to select the file. Just a minor thing. Your work rocks!
Thank you for your effort.
so like phcardan ? this mean doucle click => file selection + ok button of the dialog ?
Exactly.
just sorry for the moment im fully busy. i guess i could fix/add this weekend
i just pushed a partial solution.
you can double click on a file for directly select and close the dialog but :
- the "confirm to overwrite" dialog can be shown (if you have the flag for it), and there is no way for the moment to use it without mouse, except with the kbd navigation of imgui
- for the directory chooser, i have no idea what behavior using for select and close, because the double click is used for open the selected directory
if you have any idea, pelase share.
to note, the enter key is always buggy for the moment => to fix.
because when you hit enter he not take into account the current selected directory but get the first dir of the list..