terminal icon indicating copy to clipboard operation
terminal copied to clipboard

No keyboard input

Open privacyguy123 opened this issue 6 years ago • 131 comments

You may experience an issue with Windows Terminal where keyboard input does not work. By and large, we've determined that this is caused by the "Touch Keyboard and Handwriting Service" being disabled.

If you're hitting this issue, make sure that the "Touch Keyboard and Handwriting Service" is not disabled. Certain "de-bloating" software (and apparently MSI Afterburner) likes to disable it or suppress it in the name of making your machine less understandable and "faster".

If you're experiencing an input issue that is not helped by exiting MSI Afterburner or re-enabling the "Touch Keyboard and Handwriting Service", please file a new issue.

Original issue content Latest version of Windows Terminal.

Tried clean installing multiple times, keyboard input works on everything else (as I am typing with it here ...) yes that includes powershell.exe and cmd.exe.

What gives?

privacyguy123 avatar Feb 03 '20 15:02 privacyguy123

That's certainly unexpected - does this repro with any number of tabs?

Could you share the actual version number from the Terminal about dialog? That info makes it a lot easier for us to track bug reports, since "latest version" could either be "the latest release" or "built from master", and both of those versions change over time compared to when the bug was filed.

There's another bug floating around where focusing the window by clicking on the tab doesn't actually focus the terminal control - does clicking on the "terminal" are of the window do anything?

I'm pretty sure no one on the dev team is seeing anything like this, so it'll be pretty hard for us to fix this bug without more information somehow. Maybe if you could build form source and debug to see if Terminal::SendKeyEvent is getting hit?

zadjii-msft avatar Feb 03 '20 15:02 zadjii-msft

Windows 10 build is Microsoft Windows [Version 10.0.19041.21]. Terminal version is 0.8.10261.0 from the Microsoft Store.

Problem doesn't seem to be focusing, no matter where I click I can't get keyboard input at all.

Perhaps you can talk me through this fix?

privacyguy123 avatar Feb 03 '20 15:02 privacyguy123

Bug has came back after a clean install - I wish I could remember how to recreate it, I suspect a Windows Update on Insider is messing with it perhaps?

privacyguy123 avatar Feb 06 '20 22:02 privacyguy123

Bumping this. I see a blinking cursor but still unable to type in Windows Terminal.

privacyguy123 avatar Feb 07 '20 10:02 privacyguy123

I too am seeing the issue. It has happened to my twice. I can type most special characters i.e.

  • _ = + [ { ] } ; : " " < , > . ? / .

Cannot type any letters or numbers. No special characters on the numbers using shift.

Not sure how it happened but I think in both instances I was using a terminal split screen. When I clicked away from the terminal and came back to it a short bit later the issue was there. I believe the only fix for it at the moment is reboot the machine and I can then type again.

Version: 0.8.10261.0 Windows Insider Build: 19559.rs_prerelease.200131-1437

Also notice what I feel is a large number of Console Windows Host processes running but not sure if this is related. Currently no Terminals or Consoles opened on my desktop image

Created a Dump file of the Terminal Process if that will help in anyway at all let me know how to get it to you.

MCrank avatar Feb 12 '20 15:02 MCrank

This is happening to me as well, quite frequently.

Terminal works fine for some time then stops accepting keyboard input for Ubuntu Wsl2 container. confirmed MCrank's observation that certain special characters still work fine.

if i open a new tab or close and reopen no change. if i restart terminal app no change.

if i open a powershell tab it works for a short time then exact same issue happens with it so this isn't limited to wsl2 containers oddly enough.

stopping and restarting the LxssManager service seems to restore keyboard input for a period, i didn't think that would affect powershell, so not really sure why, just reporting what i'm seeing in case it is helpful tracking this bug down.

this started happening after the last update, and is is happening frequently enough to make terminal almost unusable and i work all day long at the command line so that is a serious workflow interruption for me.

this last time, restarting lxssManager didn't do the trick and i noticed that start menu, and search also didn't respond to keyboard input even though all other apps still work fine. not sure if this is the same issue? or related?

JoshuaJarman avatar Feb 12 '20 21:02 JoshuaJarman

I know you said "everything else," but when input dies, can you still type into the start menu search box or the feedback hub? Those are both using the modern app platform, where powershell.exe and cmd.exe are not. Looking at a possible input platform issue that's broader than just terminal.

DHowett-MSFT avatar Feb 24 '20 08:02 DHowett-MSFT

@DHowett-MSFT I'm on build-19564 and I'm also seeing this, I can confirm it's also happening in the windows start menu and feedback hub, so I confirm that might be broader than windows terminal.

simmessa avatar Mar 02 '20 09:03 simmessa

when this occurs i cannot type into start menu search or feedback hub or cortana. i completely disabled cortana in case it would help, and it has not.

Windows: 19569.1000 (insiders preview) Windows Terminal Version: 0.9.433.0

JoshuaJarman avatar Mar 04 '20 23:03 JoshuaJarman

That's certainly unexpected - does this repro with any number of tabs?

Could you share the actual version number from the Terminal about dialog? That info makes it a lot easier for us to track bug reports, since "latest version" could either be "the latest release" or "built from master", and both of those versions change over time compared to when the bug was filed.

There's another bug floating around where focusing the window by clicking on the tab doesn't actually focus the terminal control - does clicking on the "terminal" are of the window do anything?

I'm pretty sure no one on the dev team is seeing anything like this, so it'll be pretty hard for us to fix this bug without more information somehow. Maybe if you could build form source and debug to see if Terminal::SendKeyEvent is getting hit?

I did build and debug and the Terminal::SendKeyEvent doesn't trigged. My problema starts when I enable the Windows Insider and install updates.

feokuma avatar Mar 05 '20 02:03 feokuma

Also can't type when starting with PS tab. Then I create cmd tab - now i can type, until change tab focus to other window or tab. Then again keyboard input not works. Remove and reinstall terminal not helps. Windows 19041.113, (Insiders preview)

bampo avatar Mar 05 '20 09:03 bampo

Can confirm this also happens on Windows Insider build 19569. A cmd tab does work within Terminal, but WSL and Powershell do not accept any keyboard inputs except a few special characters (alt+<, alt+>, etc.)

Windows Terminal version: 0.9.433.0

keithnyc avatar Mar 05 '20 16:03 keithnyc

Maybe it has nothing to do with the current issue. But maybe this is a common problem with modern apps.

I often encounter problems in Windows Search where I cannot type. This phenomenon is more easily encountered with certain Win32 IMEs, such as Baidu Pinyin. This phenomenon is rarely encountered after using Microsoft Pinyin, but it is not completely absent. Reopening the search window after some time, the input may works.

I always thought it was a compatibility issue between modern app and legacy Win32 IME. But occasionally, this can also happen with Microsoft Pinyin. It is a modern app. In addition, the problem persisted during the two-year Insider experience.

I haven't encountered this problem in the Windows terminal, because the old version of Windows terminal did not support IME, and the line ending issue, I have not used it for a long time. If I encounter a problem with Windows terminal and IME, I will provide feedback.


And if you doesn't have an IME, it may be an insider issue:

https://blogs.windows.com/windowsexperience/2020/03/05/announcing-windows-10-insider-preview-build-19577/

  • We fixed an issue where input would stop working in some places if clipboard history (WIN + V) was dismissed without pasting anything.

The "some places" only be modern apps, all win32 applications are unaffected.

YihaoPeng avatar Mar 06 '20 22:03 YihaoPeng

Windows Insider build 19577 seems to have fixed this issue for me (yay!)

keithnyc avatar Mar 07 '20 01:03 keithnyc

I'm pretty sure no one on the dev team is seeing anything like this,

I have been occurring since 0.8 No direct input. Can be entered through the IME (Microsoft IME). Probably most Japanese Windows 10 and wt users have encountered this issue. Is it difficult for a dev team to test in a Japanese environment?

Windows 10.0.19041.113 WT 0.9.433.0 日本語キーボード (106/109 キー)

dai avatar Mar 13 '20 07:03 dai

We see this occasionally, and we're following up with the right team internally. It looks like there's something up in the input stack; we cannot say for sure whether Terminal is the cause of the issue or another victim.

DHowett-MSFT avatar Mar 18 '20 00:03 DHowett-MSFT

If somebody has a consistent repro that we can do on our own machines, it would be very helpful when we talk to that team.

DHowett-MSFT avatar Mar 18 '20 00:03 DHowett-MSFT

Thanks for the Teams @DHowett-MSFT 😃

I tried to WT (Preview) 0.10.761.0, but it's still happened.

Really hope to solve it somehow. 🙏

p.s.

  • There is no problem with PowerShell 7 GA release.
  • Problem only in WT (tried these each shells Windows PowerShell, cmd, PowerShell, Azure Cloud Shell).
  • I am always using with default settings.

modified 23rd Mar, 2020

  • Not yet fixed in Windows Terminal Preview v0.10.781.0

dai avatar Mar 18 '20 02:03 dai

This has just started happening to me as well. Repair/reset/reinstall did nothing to fix the problem. I can type everywhere else except for the Windows Terminal, where I can only type some special characters as some other people described above.

This is on Windows Terminal Version: 0.10.781.0 Windows 10 Education Build 19041.153

zanardob avatar Mar 24 '20 21:03 zanardob

Same trouble happens.

  • Windows 10 19041.153
  • WT 0.10.781.0
  • Japanese 106/109 key with ATOK Pro(Input method)
    • without ATOK, same behavior

densuke avatar Mar 25 '20 00:03 densuke