mirror of
https://github.com/tiennm99/ccstatusline.git
synced 2026-10-19 18:15:21 +00:00
Fix build issue with patching Ink, bump version to 1.0.15
This reverts commit 256b562cca.
This commit is contained in:
1 parent
256b562cca
commit
e0012bc0eb
9 files changed
+1130
-1778
No files matched your search
@@ -0,0 +1,17 @@
|
||||
diff --git a/node_modules/ink/build/parse-keypress.js b/node_modules/ink/build/parse-keypress.js
|
||||
index 1e13e81..e100611 100644
|
||||
--- a/node_modules/ink/build/parse-keypress.js
|
||||
+++ b/node_modules/ink/build/parse-keypress.js
|
||||
@@ -161,9 +161,9 @@ const parseKeypress = (s = '') => {
|
||||
key.meta = s.charAt(0) === '\x1b';
|
||||
}
|
||||
else if (s === '\x7f' || s === '\x1b\x7f') {
|
||||
- // TODO(vadimdemedes): `enquirer` detects delete key as backspace, but I had to split them up to avoid breaking changes in Ink. Merge them back together in the next major version.
|
||||
- // delete
|
||||
- key.name = 'delete';
|
||||
+ // On macOS, \x7f is what the backspace key sends, not delete
|
||||
+ // The actual forward delete sends escape sequences like \x1b[3~
|
||||
+ key.name = 'backspace';
|
||||
key.meta = s.charAt(0) === '\x1b';
|
||||
}
|
||||
else if (s === '\x1b' || s === '\x1b\x1b') {
|
||||
Reference in new issue
Block a user