Author: mordante
Date: Sat Apr  5 14:41:24 2008
New Revision: 25570

URL: http://svn.gna.org/viewcvs/wesnoth?rev=25570&view=rev
Log:
Make delete, e and a work properly.

Modified:
    trunk/src/gui/widgets/text_box.cpp

Modified: trunk/src/gui/widgets/text_box.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/text_box.cpp?rev=25570&r1=25569&r2=25570&view=diff
==============================================================================
--- trunk/src/gui/widgets/text_box.cpp (original)
+++ trunk/src/gui/widgets/text_box.cpp Sat Apr  5 14:41:24 2008
@@ -155,7 +155,7 @@
                        break;
 
                case SDLK_a :
-                       if(!modifier & KMOD_CTRL) {
+                       if(!(modifier & KMOD_CTRL)) {
                                handle_key_default(handled, key, modifier, 
unicode);
                                break;
                        }
@@ -169,7 +169,7 @@
                        break;
                        
                case SDLK_e :
-                       if(!modifier & KMOD_CTRL) {
+                       if(!(modifier & KMOD_CTRL)) {
                                handle_key_default(handled, key, modifier, 
unicode);
                                break;
                        }
@@ -338,7 +338,9 @@
        if(sel_len_ != 0) {
                assert(false); // FIXME implement
        } else {
-
+               label().erase(sel_start_, 1);
+               set_label(label());
+               set_dirty();
        }
                
 }


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to