Skip to content

Commit 1a37df2

Browse files
authored
Merge pull request #38 from nemanjan00/patch-1
Vim style up/down
2 parents db1883b + 435e4db commit 1a37df2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Terminal/UnixTerminal.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ public function getKeyedInput()
157157
// TODO: up, down, enter etc in Abstract CONSTs
158158
$map = [
159159
"\033[A" => 'up',
160+
"k" => 'up',
160161
"\033[B" => 'down',
162+
"j" => 'down',
161163
"\n" => 'enter',
162164
"\r" => 'enter',
163165
" " => 'enter',

0 commit comments

Comments
 (0)