Initial steps or instructions to begin using Microsoft Q&A
For a search box that does not accept any typing, the issue is typically with the search component or the surrounding shell (Start/Search UI) rather than the keyboard itself. The context provides several closely related scenarios and resolutions:
- If this is Windows Search (Start/Search bar, Settings search, etc.)
- Restart the shell and search components:
- Right-click the taskbar and open Task Manager.
- On the Details tab, end the explorer.exe process.
- In Task Manager, select Run new task, type
explorer.exe, and press Enter to restart the shell. - Test the search box again.
- Run the Search and Indexing troubleshooter to detect and repair common search issues:
- Press
Windows+R, type:
and press Enter.msdt.exe -ep WindowsHelp id SearchDiagnostic - Follow the prompts and apply any fixes offered.
- Press
- Check for and install all available Windows Updates, as search and shell issues are frequently fixed by cumulative updates.
- If the problem persists and affects Start and Search broadly (cannot click, search closes immediately, or cannot type), an in-place upgrade repair of Windows can repair corrupted system components while keeping files and apps. This is done by running
setup.exefrom a current Windows 11 ISO and choosing to keep personal files and apps, as described in the referenced guidance.
- Restart the shell and search components:
- If the search box is inside a specific app (for example, a UWP app using
SearchBox)- When using
Windows.UI.Xaml.Controls.SearchBox, theFocusOnKeyboardInputproperty controls whether typing anywhere in the app redirects text to the search box. IfFocusOnKeyboardInputisfalse(default), the user must explicitly focus the search box before typing. - If
FocusOnKeyboardInputistrueand the app is using the touch keyboard, there is a known issue where duplicate or unexpected behavior can occur. The recommended workaround is:- Handle the
PrepareForFocusOnKeyboardInputevent and setFocusOnKeyboardInput = falsewhen theSearchBoxreceives focus. - Handle the
LostFocusevent and setFocusOnKeyboardInput = truewhen theSearchBoxloses focus.
- Handle the
- Also ensure
FocusOnKeyboardInputis set tofalsewhenever another editable text field has focus, so keyboard input is not intercepted incorrectly by the search box.
- When using
- If this is a Windows 7 / Windows Server 2008 R2 Start menu search issue
- There is a known problem where the Search programs and files box does not display or behave correctly. A documented workaround is to remove a specific registry subkey so Windows recreates it:
- Press
Windows+R, typeregedit, and press Enter. - Navigate to:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{ef87b4cb-f2ce-4785-8658-4ca6c63e38c6} - Right-click this subkey and select Delete.
- Restart the computer and test the search box again.
- Press
- There is a known problem where the Search programs and files box does not display or behave correctly. A documented workaround is to remove a specific registry subkey so Windows recreates it:
If the search box is part of a web application (for example, SharePoint or Lync search fields) and does not accept or process input correctly, check for known product-specific issues and apply the corresponding updates or hotfixes described in the references below.
References:
- The "Search programs and files" box does not display search results correctly in Windows 7 and in Windows 2008 R2
- The "Search programs and files" box on the Start menu does not search files on network locations that are not indexed in Windows 7 or in Windows Server 2008 R2
- SearchBox.FocusOnKeyboardInput Property
- Not getting the search results you’re looking for in SharePoint?
- "'NotQueryTextBox.value' is null or not an object" error message when you perform an advanced search on a SharePoint Server 2010 website
- The Enter key is not recognized correctly when you enable Input Method Editor and then perform a search in a Lync 2010 client
- BrowserSearch
- My Windows search bar keeps a) disappearing, or b) not allowing me to type in it. How do I fix or troubleshoot? - Microsoft Q&A
- Windows 11 Search bar not working - Microsoft Q&A
- Can't use the windows search or a whole bunch of other stuff. - Microsoft Q&A
- Need help with search windows 11 - Microsoft Q&A
- Windows Start and search bar aren't working. - Microsoft Q&A