mirror of https://github.com/fairyglade/ly.git
Ctrl+{hjkl} Moving cursor (but not in text) (#492)
This commit is contained in:
parent
0b87d6c030
commit
faa76def08
|
|
@ -15,11 +15,11 @@ void handle_desktop(void* input_struct, struct tb_event* event)
|
|||
|
||||
if ((event != NULL) && (event->type == TB_EVENT_KEY))
|
||||
{
|
||||
if (event->key == TB_KEY_ARROW_LEFT)
|
||||
if (event->key == TB_KEY_ARROW_LEFT || (event->key == TB_KEY_CTRL_H))
|
||||
{
|
||||
input_desktop_right(target);
|
||||
}
|
||||
else if (event->key == TB_KEY_ARROW_RIGHT)
|
||||
else if (event->key == TB_KEY_ARROW_RIGHT || (event->key == TB_KEY_CTRL_L))
|
||||
{
|
||||
input_desktop_left(target);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -240,6 +240,7 @@ int main(int argc, char** argv)
|
|||
update = true;
|
||||
}
|
||||
break;
|
||||
case TB_KEY_CTRL_K:
|
||||
case TB_KEY_ARROW_UP:
|
||||
if (active_input > 0)
|
||||
{
|
||||
|
|
@ -247,6 +248,7 @@ int main(int argc, char** argv)
|
|||
update = true;
|
||||
}
|
||||
break;
|
||||
case TB_KEY_CTRL_J:
|
||||
case TB_KEY_ARROW_DOWN:
|
||||
if (active_input < 2)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue