Add a key binding for generic-copy

This finally adds full copy-paste support. Implements FR#15.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2012-07-04 09:54:19 +02:00
parent a3cf63b374
commit dd059ca812
5 changed files with 29 additions and 13 deletions

View File

@@ -292,6 +292,14 @@ int main(int argc, char **argv)
}
break;
case KEY_GENERIC_COPY:
if (wins_slctd() == APP && apoint_hilt() != 0) {
interact_day_item_copy(&inday.nb_events, &inday.nb_apoints);
inday = do_storage(0);
wins_update(FLAG_CAL | FLAG_APP);
}
break;
case KEY_GENERIC_PASTE:
if (wins_slctd() == APP) {
interact_day_item_paste(&inday.nb_events, &inday.nb_apoints);