diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-07-04 09:54:19 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-07-06 01:59:24 +0200 |
commit | dd059ca8129a97dfde79101bdcf5d3f7bcec0a90 (patch) | |
tree | 0e9fa590a258c1bb576e134144313877ffac9eaa /src/calcurse.c | |
parent | a3cf63b3748c5f42214d648f003933d5597a3a8d (diff) | |
download | calcurse-dd059ca8129a97dfde79101bdcf5d3f7bcec0a90.zip |
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>
Diffstat (limited to 'src/calcurse.c')
-rw-r--r-- | src/calcurse.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/calcurse.c b/src/calcurse.c index ba0f11e..8a5d261 100644 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -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); |