aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-12-21 14:27:17 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-12-21 14:27:17 +0000
commit57de9feaa508fdd83c0d08c499232187c5f4b6c1 (patch)
tree66f5c07705aa62fae0fb81072e5cda7a0679b88d /input.c
parentterm: experimental: tweak delay timeouts (diff)
term: term_spawn_new(): new function, spawns a new foot/footclient process
Bind ctrl+shift+return to it
Diffstat (limited to 'input.c')
-rw-r--r--input.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/input.c b/input.c
index 11b46cf6..ca7d0ec2 100644
--- a/input.c
+++ b/input.c
@@ -282,6 +282,11 @@ keyboard_key(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
search_begin(term);
goto maybe_repeat;
}
+
+ else if (sym == XKB_KEY_Return) {
+ term_spawn_new(term);
+ goto maybe_repeat;
+ }
}