Merge lp:~widelands-dev/widelands/handle_tab into lp:widelands
Proposed by
Tino
Status: | Merged |
---|---|
Merged at revision: | 6851 |
Proposed branch: | lp:~widelands-dev/widelands/handle_tab |
Merge into: | lp:widelands |
Diff against target: |
193 lines (+56/-16) 9 files modified
CMakeLists.txt (+1/-1) src/logic/playercommand.h (+2/-1) src/map_io/widelands_map_scripting_data_packet.cc (+5/-4) src/network/netclient.h (+4/-2) src/network/nethost.cc (+2/-1) src/ui_basic/editbox.cc (+7/-3) src/ui_basic/panel.cc (+27/-1) src/ui_fsmenu/loadgame.h (+2/-1) src/wlapplication.cc (+6/-2) |
To merge this branch: | bzr merge lp:~widelands-dev/widelands/handle_tab |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
SirVer | Approve | ||
Shevonar | Needs Fixing | ||
Review via email: mp+209406@code.launchpad.net |
Description of the change
1) Do not put a control char on tab press into input boxes
2) Allow tabbing between input fields (e.g. metaserver login)
3) some code style fixes
4) Small fix in CMakelist.txt to avoid redundant appending of linker flag on each generate
To post a comment you must log in.
I just noticed a little misinterpretation: case SDLK_KP_ENTER is actually not an empty switch case. It just falls through to case SDLK_RETURN to handle the Enter key on the keypad the same way as the Return key. A case is only redundant if it falls through to the default case. Even a case foo: break; might be useful as it prevents the default case from execution.