From 443813146a327504a07a507f43117d92296ca8a7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 9 Mar 2012 15:36:51 +0300 Subject: Move getting keys from game to keyboard config. --- src/gui/setup_keyboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/setup_keyboard.cpp b/src/gui/setup_keyboard.cpp index ef024c5d9..aae1cd183 100644 --- a/src/gui/setup_keyboard.cpp +++ b/src/gui/setup_keyboard.cpp @@ -180,7 +180,7 @@ void Setup_Keyboard::action(const gcn::ActionEvent &event) int i(mKeyList->getSelected()); keyboard.setNewKeyIndex(i); refreshAssignedKey(mKeyList->getSelected()); - keyboard.setNewKey(keyboard.KEY_NO_VALUE); + keyboard.unassignKey(); mAssignKeyButton->setEnabled(true); } else if (event.getId() == "makeDefault") -- cgit v1.2.3-70-g09d2