mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
use enter in editor file dialogs
This commit is contained in:
parent
035e7a94ff
commit
5103c214bd
|
@ -1953,7 +1953,7 @@ static void render_file_dialog()
|
|||
|
||||
RECT button;
|
||||
ui_vsplit_r(&buttonbar, 50.0f, &buttonbar, &button);
|
||||
if(do_editor_button(&ok_button, file_dialog_button_text, 0, &button, draw_editor_button, 0, 0))
|
||||
if(do_editor_button(&ok_button, file_dialog_button_text, 0, &button, draw_editor_button, 0, 0) || inp_key_pressed(KEY_RETURN))
|
||||
{
|
||||
if(file_dialog_func)
|
||||
file_dialog_func(file_dialog_complete_filename);
|
||||
|
|
Loading…
Reference in a new issue