* Very small addition to the key bindings menu.
This commit is contained in:
jean.chalard
2010-02-17 15:24:14 +00:00
parent 4fd38766b1
commit 436da6fcc0
2 changed files with 15 additions and 3 deletions

View File

@@ -68,8 +68,8 @@ const KeyRep& translateKey(JButton key) {
slimtable[JGE_BTN_CANCEL] = new KeyRep(NULL, _("Cancel"));
slimtable[JGE_BTN_PRI] = new KeyRep(NULL, _("Primary"));
slimtable[JGE_BTN_SEC] = new KeyRep(NULL, _("Secondary"));
slimtable[JGE_BTN_PREV] = new KeyRep(NULL, _("Previous"));
slimtable[JGE_BTN_NEXT] = new KeyRep(NULL, _("Next"));
slimtable[JGE_BTN_PREV] = new KeyRep(NULL, _("Next phase/Previous item"));
slimtable[JGE_BTN_NEXT] = new KeyRep(NULL, _("Open hand/Next item"));
return *slimtable[key];
}

View File

@@ -1756,4 +1756,16 @@ WGuiKeyBinder::WGuiKeyBinder(string name) : WGuiList(name), modal(false)
Add(NEW OptionKey(it->first, it->second));
}
bool WGuiKeyBinder::isModal() { return modal; }
bool WGuiKeyBinder::CheckUserInput(JButton key) { return false; }
bool WGuiKeyBinder::CheckUserInput(JButton key)
{
switch (key)
{
case JGE_BTN_UP:
prevItem(); break;
case JGE_BTN_DOWN:
nextItem(); break;
default:
;
}
return false;
}