mail[Wesnoth-commits] r37018 - /trunk/src/gui/dialogs/lobby_main.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by koraq on July 19, 2009 - 09:02:
Author: mordante
Date: Sun Jul 19 09:02:34 2009
New Revision: 37018

URL: http://svn.gna.org/viewcvs/wesnoth?rev=37018&view=rev
Log:
Allow keypad enter to work as enter in lobby.

Modified:
    trunk/src/gui/dialogs/lobby_main.cpp

Modified: trunk/src/gui/dialogs/lobby_main.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/dialogs/lobby_main.cpp?rev=37018&r1=37017&r2=37018&view=diff
==============================================================================
--- trunk/src/gui/dialogs/lobby_main.cpp (original)
+++ trunk/src/gui/dialogs/lobby_main.cpp Sun Jul 19 09:02:34 2009
@@ -829,7 +829,7 @@
 bool tlobby_main::chat_input_keypress_callback(twidget* widget, SDLKey key,
        SDLMod /*mod*/, Uint16 /*unicode*/)
 {
-       if (key == SDLK_RETURN) {
+       if (key == SDLK_RETURN || key == SDLK_KP_ENTER) {
                send_message_button_callback(*widget->get_window());
                return true;
        }
@@ -862,7 +862,7 @@
 bool tlobby_main::game_filter_keypress_callback(twidget* /*widget*/, SDLKey 
key,
        SDLMod /*mod*/, Uint16 /*unicode*/)
 {
-       if (key == SDLK_RETURN) {
+       if (key == SDLK_RETURN || key == SDLK_KP_ENTER) {
                game_filter_reload();
                update_gamelist();
        }




Related Messages


Powered by MHonArc, Updated Sun Jul 19 09:20:55 2009