1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-23 14:23:26 +01:00

improve key bindings (I think?)

This commit is contained in:
Jfreegman 2014-06-18 20:07:34 -04:00
parent ca98b49813
commit 85af9f55ba
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63
2 changed files with 9 additions and 8 deletions

View File

@ -440,14 +440,14 @@ bool line_info_onKey(ToxWindow *self, wint_t key)
bool match = true;
switch (key) {
/* TODO: Find good key bindings for page up/page down scroll behaviour */
/* case KEY_SPREVIOUS:
/* TODO: Find good key bindings for all this stuff */
case T_KEY_C_H:
line_info_page_up(self, hst);
break;
case KEY_SNEXT:
case T_KEY_C_B:
line_info_page_down(self, hst);
break; */
break;
case KEY_PPAGE:
line_info_scroll_up(hst);
@ -457,13 +457,13 @@ bool line_info_onKey(ToxWindow *self, wint_t key)
line_info_scroll_down(hst);
break;
case KEY_HOME:
/* case ?:
line_info_goto_root(hst);
break;
case KEY_END:
case ?:
line_info_reset_start(self, hst);
break;
break; */
default:
match = false;

View File

@ -48,9 +48,10 @@
#define T_KEY_PREV 0x0F /* ctrl-o */
#define T_KEY_C_E 0x05 /* ctrl-e */
#define T_KEY_C_A 0x01 /* ctrl-a */
#define T_KEY_ESC 0x1B /* ESC key */
#define T_KEY_C_RB 0x1D /* ctrl-] */
#define T_KEY_C_LB 0x1B /* ctrl-[ */
#define T_KEY_C_B 0x02 /* ctrl-b */
#define T_KEY_C_H 0x08 /* ctrl-h */
enum {
MOVE_UP,