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:
Nicholas Marriott
2009-07-21 17:57:29 +00:00
parent c6012aaabc
commit 725938fb85
11 changed files with 149 additions and 165 deletions

View File

@ -48,7 +48,7 @@ cmd_previous_window_init(struct cmd *self, int key)
cmd_target_init(self, key);
data = self->data;
if (key == KEYC_ADDESC('p'))
if (key == ('p' | KEYC_ESCAPE))
data->chflags |= CMD_CHFLAG('a');
}