J :
* Very small addition to the key bindings menu.
This commit is contained in:
@@ -68,8 +68,8 @@ const KeyRep& translateKey(JButton key) {
|
|||||||
slimtable[JGE_BTN_CANCEL] = new KeyRep(NULL, _("Cancel"));
|
slimtable[JGE_BTN_CANCEL] = new KeyRep(NULL, _("Cancel"));
|
||||||
slimtable[JGE_BTN_PRI] = new KeyRep(NULL, _("Primary"));
|
slimtable[JGE_BTN_PRI] = new KeyRep(NULL, _("Primary"));
|
||||||
slimtable[JGE_BTN_SEC] = new KeyRep(NULL, _("Secondary"));
|
slimtable[JGE_BTN_SEC] = new KeyRep(NULL, _("Secondary"));
|
||||||
slimtable[JGE_BTN_PREV] = new KeyRep(NULL, _("Previous"));
|
slimtable[JGE_BTN_PREV] = new KeyRep(NULL, _("Next phase/Previous item"));
|
||||||
slimtable[JGE_BTN_NEXT] = new KeyRep(NULL, _("Next"));
|
slimtable[JGE_BTN_NEXT] = new KeyRep(NULL, _("Open hand/Next item"));
|
||||||
|
|
||||||
return *slimtable[key];
|
return *slimtable[key];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1756,4 +1756,16 @@ WGuiKeyBinder::WGuiKeyBinder(string name) : WGuiList(name), modal(false)
|
|||||||
Add(NEW OptionKey(it->first, it->second));
|
Add(NEW OptionKey(it->first, it->second));
|
||||||
}
|
}
|
||||||
bool WGuiKeyBinder::isModal() { return modal; }
|
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;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user