mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-13 04:27:47 -05:00
selection: add support for pasting from clipboard
This commit is contained in:
parent
b50ec1a850
commit
482c8f76a9
3 changed files with 48 additions and 1 deletions
5
input.c
5
input.c
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue