mirror of
https://github.com/tmate-io/tmate.git
synced 2026-01-23 02:24:06 +00:00
Tidy up keys: use an enum for the key codes, and remove the macros which just
wrap flag sets/clears/tests.
This commit is contained in:
parent
c6012aaabc
commit
725938fb85
11 changed files with 149 additions and 165 deletions
|
|
@ -49,16 +49,16 @@ cmd_select_layout_init(struct cmd *self, int key)
|
|||
data = self->data;
|
||||
|
||||
switch (key) {
|
||||
case KEYC_ADDESC('1'):
|
||||
case ('1' | KEYC_ESCAPE):
|
||||
data->arg = xstrdup("even-horizontal");
|
||||
break;
|
||||
case KEYC_ADDESC('2'):
|
||||
case ('2' | KEYC_ESCAPE):
|
||||
data->arg = xstrdup("even-vertical");
|
||||
break;
|
||||
case KEYC_ADDESC('3'):
|
||||
break;
|
||||
case ('3' | KEYC_ESCAPE):
|
||||
data->arg = xstrdup("main-horizontal");
|
||||
break;
|
||||
case KEYC_ADDESC('4'):
|
||||
case ('4' | KEYC_ESCAPE):
|
||||
data->arg = xstrdup("main-vertical");
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue