Skip to content

Commit 733c937

Browse files
Add support for additional keys (#140)
1 parent f041b97 commit 733c937

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Key.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ class Key
66
{
77
const UP = "\e[A";
88

9+
const SHIFT_UP = "\e[1;2A";
10+
911
const DOWN = "\e[B";
1012

13+
const SHIFT_DOWN = "\e[1;2B";
14+
1115
const RIGHT = "\e[C";
1216

1317
const LEFT = "\e[D";
@@ -20,6 +24,8 @@ class Key
2024

2125
const LEFT_ARROW = "\eOD";
2226

27+
const ESCAPE = "\e";
28+
2329
const DELETE = "\e[3~";
2430

2531
const BACKSPACE = "\177";

0 commit comments

Comments
 (0)