Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
fuchsia.googlesource.com-third_party-rust-mirrors-rustyline
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fuchsia-mirror
fuchsia.googlesource.com-third_party-rust-mirrors-rustyline
Commits
ad9e2f91
Commit
ad9e2f91
authored
8 years ago
by
gwenn
Browse files
Options
Downloads
Patches
Plain Diff
Misc
parent
9ef96899
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/tty/windows.rs
+2
-0
2 additions, 0 deletions
src/tty/windows.rs
with
2 additions
and
0 deletions
src/tty/windows.rs
+
2
−
0
View file @
ad9e2f91
...
...
@@ -158,6 +158,7 @@ impl RawReader for ConsoleRawReader {
key_event
.wVirtualKeyCode
!=
winapi
::
VK_MENU
as
winapi
::
WORD
{
continue
;
}
// key_event.wRepeatCount seems to be always set to 1 (maybe because we only read one character at a time)
// let alt_gr = key_event.dwControlKeyState & (LEFT_CTRL_PRESSED | RIGHT_ALT_PRESSED) ==
// (LEFT_CTRL_PRESSED | RIGHT_ALT_PRESSED);
...
...
@@ -179,6 +180,7 @@ impl RawReader for ConsoleRawReader {
winapi
::
VK_END
=>
return
Ok
(
KeyPress
::
End
),
winapi
::
VK_PRIOR
=>
return
Ok
(
KeyPress
::
PageUp
),
winapi
::
VK_NEXT
=>
return
Ok
(
KeyPress
::
PageDown
),
// winapi::VK_BACK is correctly handled because the key_event.UnicodeChar is also set.
_
=>
continue
,
};
}
else
if
utf16
==
27
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment