The docs say hitting enter works like pressing the OK button but it doesn't
work at the moment because the GtkEntry that gets packed in the dialog eats
the enter by default.  This one line patch makes it work right.

Note that the code it still somewhat confused as enter doesn't end up producing
a GTK_RESPONSE_ACCEPT as the gui_mch_dialog code seems to expect.  But it never
did (even when you just press the button) I believe because this response is
never set for this button for gui_mch_dialog.  The Gtk docs say this code is
not generated automatically, but only if it is set for a button.  Other dialogs
(file chooser etc.) do that the the input dialog doesn't so far as I can see.
Anyway all the existing code does with GTK_RESPONSE_ACCEPT is set the response
straight back to def_but which is what does get returned by gtk_dialog_run.

Britton

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Attachment: input_dialog_enter_fix
Description: Binary data

Raspunde prin e-mail lui