diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-11 10:33:31 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-11 15:38:02 +0000 |
| commit | 482c8f76a99d85970a40f41e455fc6be80b2a5ba (patch) | |
| tree | 0bb226df7de0c7ce8340bf573c4a2ce1de563c43 /input.c | |
| parent | selection: initial copy-to-clipboard functionality (diff) | |
selection: add support for pasting from clipboard
Diffstat (limited to 'input.c')
| -rw-r--r-- | input.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -161,6 +161,11 @@ keyboard_key(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, selection_to_clipboard(term, serial); found_map = true; } + + else if (sym == XKB_KEY_V) { + selection_from_clipboard(term, serial); + found_map = true; + } } for (size_t i = 0; i < sizeof(key_map) / sizeof(key_map[0]) && !found_map; i++) { |
