Author: grzywacz
Date: Tue Apr 3 20:35:48 2007
New Revision: 16581
URL: http://svn.gna.org/viewcvs/wesnoth?rev=16581&view=rev
Log:
Make hotkeys work again.
Modified:
branches/gp2x/src/play_controller.cpp
Modified: branches/gp2x/src/play_controller.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/branches/gp2x/src/play_controller.cpp?rev=16581&r1=16580&r2=16581&view=diff
==============================================================================
--- branches/gp2x/src/play_controller.cpp (original)
+++ branches/gp2x/src/play_controller.cpp Tue Apr 3 20:35:48 2007
@@ -525,6 +525,11 @@
switch(event.type) {
case SDL_KEYDOWN:
+ if(menu_handler_.get_textbox().active() == false) {
+ hotkey::key_event(*gui_,event.key,this);
+ }
+
+ // fall-through
case SDL_KEYUP:
//if the user has pressed 1 through 9, we want to show how far
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits