Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WindowsSupport.readConsoleInput cannot capture some key events in Win10 #40

Open
hyee opened this issue Dec 8, 2015 · 0 comments
Open

Comments

@hyee
Copy link

hyee commented Dec 8, 2015

Following events cannot be captured in Win10:

  • Ctrl+C
  • Symbol tab(\t) that pasted from clipboard, however manually click tab is fine.

But above events work well in Win XP/Win 7, not sure if Win8 has the same issue.
Following result is the output of keyEvent.toString() from Win 7 for your reference:

//Ctrl+C
KEY_EVENT_RECORD{keyDown=true, repeatCount=1, keyCode=17, scanCode=29, uchar= controlKeyState=262152}
KEY_EVENT_RECORD{keyDown=false, repeatCount=1, keyCode=67, scanCode=46, uchar=�, controlKeyState=262152}//uchar=3
KEY_EVENT_RECORD{keyDown=false, repeatCount=1, keyCode=17, scanCode=29, uchar=  controlKeyState=262144}

//Paste 'a\ts d' from clipboard
KEY_EVENT_RECORD{keyDown=true, repeatCount=1, keyCode=65, scanCode=30, uchar=a, controlKeyState=0}
KEY_EVENT_RECORD{keyDown=false, repeatCount=1, keyCode=65, scanCode=30, uchar=a, controlKeyState=0}
KEY_EVENT_RECORD{keyDown=true, repeatCount=1, keyCode=9, scanCode=15, uchar=    , controlKeyState=0}
KEY_EVENT_RECORD{keyDown=false, repeatCount=1, keyCode=9, scanCode=15, uchar=   , controlKeyState=0}
KEY_EVENT_RECORD{keyDown=true, repeatCount=1, keyCode=83, scanCode=31, uchar=s, controlKeyState=0}
KEY_EVENT_RECORD{keyDown=false, repeatCount=1, keyCode=83, scanCode=31, uchar=s, controlKeyState=0}
KEY_EVENT_RECORD{keyDown=true, repeatCount=1, keyCode=32, scanCode=57, uchar= , controlKeyState=0}
KEY_EVENT_RECORD{keyDown=false, repeatCount=1, keyCode=32, scanCode=57, uchar= , controlKeyState=0}
KEY_EVENT_RECORD{keyDown=true, repeatCount=1, keyCode=68, scanCode=32, uchar=d, controlKeyState=0}
KEY_EVENT_RECORD{keyDown=false, repeatCount=1, keyCode=68, scanCode=32, uchar=d, controlKeyState=0}
@hyee hyee changed the title WindowsSupport.peekConsoleInput cannot capture some key events in Win10 WindowsSupport.readConsoleInput cannot capture some key events in Win10 Dec 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant