editor: implement Cut,Copy,Paste
authorManuel Bachmann <manuel.bachmann@open.eurogiciel.org>
Sun, 29 Mar 2015 23:57:44 +0000 (01:57 +0200)
committerBryce Harrington <bryce@osg.samsung.com>
Thu, 7 May 2015 23:27:30 +0000 (16:27 -0700)
commit22f343017560764e82d63535fbf5617d999a4038
tree0a1327072139599e27ed970a67eb113602ba2c4c
parent71c9ac6c7f546f2a11d3c1ec60356a641a2781c9
editor: implement Cut,Copy,Paste

weston-editor is the only stock client spawning the virtual
keyboard ; which means it may be the only client able to
obtain some special characters (depending on the user's
keyboard layout).

If we implement Cut, Copy and Paste, the user has now a way
to copy such characters to other useful clients (such as
weston-terminal). Plus, it demonstrates text data exchange
between two clients of different nature.

Functionality is implemented in a right-click menu and the
Ctrl+Shift+X/C/V bindings, just as in weston-terminal.

Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Tested-by: Bryce Harrington <bryce@osg.samsung.com>
clients/editor.c