aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-12-21 18:44:36 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-12-21 18:44:36 +0000
commit0bb15d3d167c3418d6e6dbba1e60c5a063b43965 (patch)
tree9ad31ce54669c245cc812f2e868494ffc6d80f16 /input.c
parentterm: experimental: tweak delay timeouts (diff)
parentosc: implement OSC 7 - set PWD (diff)
Merge branch 'launch-new-instance'
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;
+ }
}