X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsystemkeyboardinput.cpp;fp=source%2Fsystemkeyboardinput.cpp;h=fe803a6ddd2e407abbe1cdbcadaed5ec4ce989da;hb=1597579a34a8d87d4dea0a0cdc0895e6247b6126;hp=cedddd1817d170b21c6f34eb3ac7fec07d3951ec;hpb=0326f950dfb4457bf3e3044cd17aeaa46e56bdac;p=libs%2Fgltk.git diff --git a/source/systemkeyboardinput.cpp b/source/systemkeyboardinput.cpp index cedddd1..fe803a6 100644 --- a/source/systemkeyboardinput.cpp +++ b/source/systemkeyboardinput.cpp @@ -20,6 +20,18 @@ bool SystemKeyboardInput::key_press(unsigned key) if(root.key_press(key, 0)) return true; + switch(key) + { + case Input::KEY_LEFT: return root.navigate(NAV_LEFT); + case Input::KEY_RIGHT: return root.navigate(NAV_RIGHT); + case Input::KEY_UP: return root.navigate(NAV_UP); + case Input::KEY_DOWN: return root.navigate(NAV_DOWN); + case Input::KEY_TAB: return root.navigate(NAV_NEXT); + case Input::KEY_SPACE: return root.navigate(NAV_ACTIVATE); + case Input::KEY_ENTER: return root.navigate(NAV_ACCEPT); + case Input::KEY_ESC: return root.navigate(NAV_CANCEL); + } + return false; }