diff options
author | Frederic Culot <calcurse@culot.org> | 2008-11-09 20:10:18 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2008-11-09 20:10:18 +0000 |
commit | e8f12c65ca0245079ae015a90e7a14109759cdda (patch) | |
tree | dc16f443c7209b8f93f1e21146f7c7d87d2cf56a /src/todo.c | |
parent | f845721828a0000f1c7e30f35360417771788e0a (diff) | |
download | calcurse-e8f12c65ca0245079ae015a90e7a14109759cdda.zip |
Loading of user-configurable keys implemented
Diffstat (limited to 'src/todo.c')
-rwxr-xr-x | src/todo.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $calcurse: todo.c,v 1.22 2008/04/19 21:05:15 culot Exp $ */ +/* $calcurse: todo.c,v 1.23 2008/11/09 20:10:18 culot Exp $ */ /* * Calcurse - text-based organizer @@ -30,6 +30,7 @@ #include "utils.h" #include "custom.h" +#include "keys.h" #include "i18n.h" #include "todo.h" @@ -347,11 +348,11 @@ todo_chg_priority (int action) strncpy (backup_note, backup->note, NOTESIZ + 1); else backup_note[0] = '\0'; - if (action == '+') + if (action == KEY_TODO_RAISE_PRIORITY) { (backup_id > 1) ? backup_id-- : do_chg--; } - else if (action == '-') + else if (action == KEY_TODO_LOWER_PRIORITY) { (backup_id < 9) ? backup_id++ : do_chg--; } |