Loading of user-configurable keys implemented

This commit is contained in:
Frederic Culot
2008-11-09 20:10:18 +00:00
parent f845721828
commit e8f12c65ca
12 changed files with 321 additions and 117 deletions

View File

@@ -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--;
}