diff --git a/binaries/data/config/default.cfg b/binaries/data/config/default.cfg
index 78f8992294..06fc31649b 100644
--- a/binaries/data/config/default.cfg
+++ b/binaries/data/config/default.cfg
@@ -310,7 +310,6 @@ hotkey.session.highlightguarded = PgUp ; Toggle highlight of guarded units
; > HOTKEYS ONLY
hotkey.chat = Return ; Toggle chat window
hotkey.teamchat = "T" ; Toggle chat window in team chat mode
-hotkey.complete.playername = "Alt+C" ; Complete a player's name
; > GUI TEXTBOX HOTKEYS
hotkey.text.delete.left = "Ctrl+Backspace" ; Delete word to the left of cursor
diff --git a/binaries/data/mods/public/gui/lobby/lobby.xml b/binaries/data/mods/public/gui/lobby/lobby.xml
index 5ccb776da1..13c91707ad 100644
--- a/binaries/data/mods/public/gui/lobby/lobby.xml
+++ b/binaries/data/mods/public/gui/lobby/lobby.xml
@@ -8,12 +8,6 @@
-
-
@@ -159,6 +153,7 @@
submitChatInput();
+ completeNick();
diff --git a/binaries/data/mods/public/gui/savedgames/save.xml b/binaries/data/mods/public/gui/savedgames/save.xml
index 70d24e93ab..c2a8f4f62e 100644
--- a/binaries/data/mods/public/gui/savedgames/save.xml
+++ b/binaries/data/mods/public/gui/savedgames/save.xml
@@ -27,7 +27,9 @@
Description:
-
+
+ saveGame();
+
Save
diff --git a/source/gui/CInput.cpp b/source/gui/CInput.cpp
index f2980f9093..af9fed897e 100644
--- a/source/gui/CInput.cpp
+++ b/source/gui/CInput.cpp
@@ -99,7 +99,8 @@ InReaction CInput::ManuallyHandleEvent(const SDL_Event_* ev)
{
case SDLK_TAB: // '\t'
/* Auto Complete */
- // TODO Gee: (2004-09-07) What to do with tab?
+ // We just send the tab event to JS and let it figure out autocomplete.
+ SendEvent(GUIM_TAB, "tab");
break;
case SDLK_BACKSPACE: // '\b'
diff --git a/source/gui/GUIbase.h b/source/gui/GUIbase.h
index 75a9a3f1da..6e5699a77e 100644
--- a/source/gui/GUIbase.h
+++ b/source/gui/GUIbase.h
@@ -95,7 +95,8 @@ enum EGUIMessageType
GUIM_GOT_FOCUS,
GUIM_LOST_FOCUS,
GUIM_PRESSED_MOUSE_RIGHT,
- GUIM_DOUBLE_PRESSED_MOUSE_RIGHT
+ GUIM_DOUBLE_PRESSED_MOUSE_RIGHT,
+ GUIM_TAB // Used by CInput
};
/**
diff --git a/source/gui/IGUIObject.h b/source/gui/IGUIObject.h
index 298326baed..e75088fbef 100644
--- a/source/gui/IGUIObject.h
+++ b/source/gui/IGUIObject.h
@@ -69,9 +69,6 @@ class CScriptValRooted;
// Types
//--------------------------------------------------------
-// Map with pointers
-typedef std::map map_Settings;
-
struct JSObject;
//--------------------------------------------------------
diff --git a/source/tools/XpartaMuPP/XpartaMuPP.py b/source/tools/XpartaMuPP/XpartaMuPP.py
index d7f692ec1f..ba929712bf 100644
--- a/source/tools/XpartaMuPP/XpartaMuPP.py
+++ b/source/tools/XpartaMuPP/XpartaMuPP.py
@@ -126,9 +126,9 @@ class LeaderboardList():
result = 1 if player1 == game.winner else -1
# Player's ratings are -1 unless they have played a rated game.
if player1.rating == -1:
- player1.rating == leaderboard_default_rating
+ player1.rating = leaderboard_default_rating
if player2.rating == -1:
- player2.rating == leaderboard_default_rating
+ player2.rating = leaderboard_default_rating
rating_adjustment1 = int(get_rating_adjustment(player1.rating, player2.rating,
len(player1.games), len(player2.games), result))