aboutsummaryrefslogtreecommitdiffstats
path: root/src/keys.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-07-04 09:54:19 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2012-07-06 01:59:24 +0200
commitdd059ca8129a97dfde79101bdcf5d3f7bcec0a90 (patch)
tree0e9fa590a258c1bb576e134144313877ffac9eaa /src/keys.c
parenta3cf63b3748c5f42214d648f003933d5597a3a8d (diff)
downloadcalcurse-dd059ca8129a97dfde79101bdcf5d3f7bcec0a90.tar.gz
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/keys.c')
-rw-r--r--src/keys.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/keys.c b/src/keys.c
index 7989d16..579ddc8 100644
--- a/src/keys.c
+++ b/src/keys.c
@@ -57,6 +57,7 @@ static struct keydef_s keydef[NBKEYS] = {
{"generic-quit", "q Q"},
{"generic-save", "s S C-s"},
{"generic-cut", "C-x"},
+ {"generic-copy", "c"},
{"generic-paste", "C-v"},
{"generic-change-view", "TAB"},
{"generic-import", "i I"},
@@ -445,6 +446,7 @@ void keys_popup_info(enum key key)
info[KEY_GENERIC_QUIT] = _("Exit from the current menu, or quit calcurse.");
info[KEY_GENERIC_SAVE] = _("Save calcurse data.");
info[KEY_GENERIC_CUT] = _("Cut the item that is currently selected.");
+ info[KEY_GENERIC_COPY] = _("Copy the item that is currently selected.");
info[KEY_GENERIC_PASTE] = _("Paste an item at the current position.");
info[KEY_GENERIC_CHANGE_VIEW] =
_("Select next panel in calcurse main screen.");