Отключение залипания клавиш и фильтрации ввода в Windows 7
В Microsoft Windows предусмотрен ряд незаменимых функций для людей с ограниченными возможностями. Однако для тех, кто этими функциями не пользуется, они могут оказаться ненужным раздражителем.
К примеру, при быстром пятикратном нажатии левой клавиши [Shift] в Windows 7 появляется диалоговое окно с предложением включить залипание клавиш (Sticky Keys, рис. A).
Для некоторых залипание клавиш — единственный способ нормально взаимодействовать с компьютером и операционной системой. Но вот нервным редакторам вроде меня, которые в задумчивости стучат по клавише [Shift], пытаясь подобрать более удачное слово, эта функция даром не нужна. К счастью, ее можно полностью отключить из Панели управления (Control Panel).
Отключение залипания клавиш
Если диалоговое окно с предложением включить залипание клавиш еще открыто, можно просто перейти по ссылке. Если нет — откройте Панель управления и перейдите к разделу «Специальные возможности» (Ease of Access, рис. B).
В открывшемся окне (рис. C) нажмите ссылку «Изменение параметров клавиатуры» (Change how Your Keyboard Works), чтобы вызвать окно «Облегчение работы с клавиатурой» (Make the keyboard easier to use, рис. D).
По умолчанию, в разделе «Упростить набор текста» (Make It Easier to Type) большинство опций не отмечено, что не мешает Windows всякий раз предлагать включение новых функций при нажатии определенной последовательности клавиш. Чтобы избавиться от этих предложений, придется погрузиться еще глубже в настройки.
Нажмите ссылку «Настройка залипания клавиш» (Set Up Sticky Keys), чтобы перейти к окну «Настроить залипание клавиш» (Set Up Sticky Keys, рис. E).
В этом окне нужно снять флажок «Включать залипание клавиш при пятикратном нажатии клавиши SHIFT» (Turn on Sticky Keys when SHIFT Is Pressed Five Times). Тогда Windows перестанет предлагать включить эту функцию.
Отключение фильтрации ввода
Еще одна похожая функция, «Фильтрация ввода» (Filter Keys), включается, если нажать и удерживать правую клавишу [Shift] более 8 секунд. Чтобы ее отключить, в окне «Облегчение работы с клавиатурой» нажмите ссылку «Настройка фильтрации ввода» (Set Up Filter Keys, рис. D) и снимите флажок «Включать режим фильтрации ввода при удержании правой клавиши SHIFT более 8 секунд» (Turn on Filter Keys when Right SHIFT Is Pressed for 8 Seconds, рис. F).
Теперь можно вздохнуть спокойно
Если специальные возможности вам не нужны, отключение этих двух опций избавит вас от навязчивых предложений операционной системы.
Keyboard Filter
You can use Keyboard Filter to suppress undesirable key presses or key combinations. Normally, a customer can use certain MicrosoftВ Windows key combinations like Ctrl+Alt+Delete or Ctrl+Shift+Tab to alter the operation of a device by locking the screen or using Task Manager to close a running application. This may not be desirable if your device is intended for a dedicated purpose.
The Keyboard Filter feature works with physical keyboards, the Windows on-screen keyboard, and the touch keyboard. Keyboard Filter also detects dynamic layout changes, such as switching from one language set to another, and continues to suppress keys correctly, even if the location of suppressed keys has changed on the keyboard layout.
Keyboard filter is not supported in a remote desktop session.
Requirements
WindowsВ 10 Enterprise or WindowsВ 10 Education.
Terminology
Turn on, enable: To make the setting available to the device and optionally apply the settings to the device. Generally turn on is used in the user interface or control panel, whereas enable is used for command line.
Configure: To customize the setting or sub-settings.
Embedded Keyboard Filter: This feature is called Embedded Keyboard Filter in WindowsВ 10, version 1511.
Keyboard Filter: This feature is called Keyboard Filter in WindowsВ 10, version 1607 and later.
Turn on Keyboard Filter
By default, Keyboard Filter is not turned on. You can turn Keyboard Filter on or off for your device by using the following steps.
Turning on an off Keyboard Filter requires that you restart your device. Keyboard Filter is automatically enabled after the restart.
Turn on Keyboard Filter by using Control Panel
- In the Search the web and Windows field, type Programs and Features and either press Enter or tap or click Programs and Features to open it.
- In the Programs and Features window, click Turn Windows features on or off.
- In the Windows Features window, expand the Device Lockdown node, and select or clear the checkbox for Keyboard Filter.
- Click OK. The Windows Features window indicates WindowsВ 10 is searching for required files and displays a progress bar. Once found, the window indicates WindowsВ 10 is applying the changes. When completed, the window indicates the requested changes are completed.
- Click Close to close the Windows Features window.
Configure Keyboard using Unattend
- You can configure the Unattend settings in the Microsoft-Windows-Embedded-KeyboardFilterService component to add Keyboard Filter features to your image during the design or imaging phase.
- You can manually create an Unattend answer file or use Windows System Image Manager (Windows SIM) to add the appropriate settings to your answer file. For more information about the keyboard filter settings and XML examples, see the settings in Microsoft-Windows-Embedded-KeyboardFilterService.
Turn on and configure Keyboard Filter using Windows Configuration Designer
The Keyboard Filter settings are also available as Windows provisioning settings so you can configure these settings to be applied during the image deployment time or runtime. You can set one or all keyboard filter settings by creating a provisioning package using Windows Configuration Designer and then applying the provisioning package during image deployment time or runtime.
Build a provisioning package in Windows Configuration Designer by following the instructions in Create a provisioning package.
In the Select Windows Edition window, choose Common to all Windows desktop editions.
On the Available customizations page, select Runtime settings > SMISettings, and then set the desired values for the keyboard filter settings.
Once you have finished configuring the settings and building the provisioning package, you can apply the package to the image deployment time or runtime. See Apply a provisioning package for more information. Note that the process for applying the provisioning packageg to a WindowsВ 10 Enterprise image is the same.
This example uses a Windows image called install.wim, but you can use the same procedure to apply a provisioning package. For more information on DISM, see What Is Deployment Image Servicing and Management.
Turn on and configure Keyboard Filter by using DISM
Open a command prompt with administrator privileges.
Copy install.wim to a temporary folder on hard drive (in the following steps, we’ll assume it’s called C:\wim).
Create a new directory.
Enable the feature.
Keyboard Filter features
Keyboard Filter has the following features:
Supports hardware keyboards, the standard Windows on-screen keyboard, and the touch keyboard (TabTip.exe).
Suppresses key combinations even when they come from multiple keyboards.
For example, if a user presses the Ctrl key and the Alt key on a hardware keyboard, while at the same time pressing Delete on a software keyboard, Keyboard Filter can still detect and suppress the Ctrl+Alt+Delete functionality.
Supports numeric keypads and keys designed to access media player and browser functionality.
Can configure a key to breakout of a locked down user session to return to the Welcome screen.
Automatically handles dynamic layout changes.
Can be enabled or disabled for administrator accounts.
Can force disabling of Ease of Access functionality.
Can block physical hardware keys.
Supports x86 and x64 architectures.
Keyboard scan codes and layouts
When a key is pressed on a physical keyboard, the keyboard sends a scan code to the keyboard driver. The driver then sends the scan code to the OS and the OS converts the scan code into a virtual key based on the current active layout. The layout defines the mapping of keys on the physical keyboard, and has many variants. A key on a keyboard always sends the same scan code when pressed, however this scan code can map to different virtual keys for different layouts. For example, in the English (United States) keyboard layout, the key to the right of the P key maps to “<“. However, in the Swedish (Sweden) keyboard layout, the same key maps to “Å”.
Keyboard Filter can block keys either by the scan code or the virtual key. Blocking keys by the scan code is useful for custom keyboards that have special scan codes that do not translate into any single virtual key. Blocking keys by the virtual key is generally more convenient because it is easier to read and Keyboard Filter suppresses the key correctly even when the location of the key changes because of a layout change.
When you configure Keyboard Filter to block keys by using the virtual key, you must use the English names for the virtual keys. For more information about the names of the virtual keys, see keyboard filter key names.
For the Windows on-screen keyboard, keyboard filter converts each keystroke into a scan code based on the layout, and back into a virtual key. This allows keyboard filter to suppress the on-screen keyboard keys in the same manner as physical keyboard keys, whether they are configured by scan code or virtual key.
Keyboard Filter and ease of access features
By default, ease of access features are enabled and Keyboard Filter is disabled for administrator accounts.
If Sticky Keys are enabled, a user can bypass Keyboard Filter in certain situations. You can configure keyboard filter to disable all ease of access features and prevent users from enabling them.
You can enable ease of access features for administrator accounts, while still disabling them for standard user accounts, by making sure that Keyboard Filter is disabled for administrator accounts.
Keyboard Filter configuration
You can configure the following options for Keyboard Filter:
- Set/unset predefined key combinations to be suppressed.
- Add/remove custom defined key combinations to be suppressed.
- Enable/disable keyboard filter for administrator accounts.
- Force disabling ease of access features.
- Configure a breakout key sequence to break out of a locked down account.
Most configuration changes take effect immediately. Some changes, such as enabling or disabling Keyboard Filter for administrators, do not take effect until the user signs out of the account and then back in. If you change the breakout key scan code, you must restart the device before the change take effect.
You can configure keyboard filter by using Windows Management Instrumentation (WMI) providers. You can use the Keyboard Filter WMI providers directly in a PowerShell script or in an application.
For more information about Keyboard Filter WMI providers, see Keyboard Filter WMI provider reference.
Keyboard breakout
You may need to sign in to a locked down device with a different account in order to service or configure the device. You can configure a breakout key to break out of a locked down account by specifying a key scan code. When you press Ctrl+Alt+Delete, Windows presents the Welcome screen so that you can sign in to a different account.
The breakout key is set to the scan code for the left Windows logo key by default. You can use the WEKF_SettingsWMI class to change the breakout key scan code. If you change the breakout key scan code, you must restart the device before the change takes effect.
Keyboard Filter considerations
Starting a device in Safe Mode bypasses keyboard filter. The Keyboard Filter service is not loaded in Safe Mode, and keys are not blocked in Safe Mode.
Keyboard filter cannot block the Sleep key.
Some hardware keys, such as rotation lock, do not have a defined virtual key. You can still block these keys by using the scan code of the key.
The add (+), multiply (*), subtract (-), divide (/), and decimal (.) keys have different virtual keys and scan codes on the numeric keypad than on the main keyboard. You must block both keys to block these keys. For example, to block the multiply key, you must add a rule to block “*” as well as a rule to block Multiply.
When locking the screen by using the on-screen keyboard, or a combination of a physical keyboard and the on-screen keyboard, the on-screen keyboard sends an additional Windows logo key keystroke to the OS. If your device is using the WindowsВ 10 shell and you use keyboard filter to block Windows logo key+L, the extra Windows logo key keystroke causes the shell to switch between the Start screen and the last active app when a user attempts to lock the device by using the on-screen keyboard, which may be unexpected behavior.
Some custom keyboard software, such as Microsoft IntelliType Pro, can install Keyboard Filter drivers that prevent Keyboard Filter from being able to block some or all keys, typically extended keys like BrowserHome and Search.
Microsoft-Windows-Embedded-KeyboardFilterService
You can use KeyboardFilterService in to suppress undesirable key presses or key combinations. Normally, a customer can use certain Windows key combinations like Ctrl+Alt+Delete or Ctrl+Shift+Tab to alter the operation of a device by locking the screen or using Task Manager to close a running application. This may not be desirable if your device is intended for a dedicated purpose. However, you can use KeyboardFilterService to suppress any key press or key combination that causes an undesirable system behavior.
For Unattend code samples that show how to suppress various key strokes and shortcuts, see the topics below. For more general information about this feature, see Customizations for Enterprise — Keyboard Filter.
Child elements
| Setting | Description |
|---|---|
| Alt | Blocks both Alt keys. |
| AltF4 | Blocks the Alt+F4 key combination used to close applications. |
| AltSpace | Blocks the Alt+Space key combination used to open the shortcut menu for the active window. |
| AltTab | Blocks the Alt+Tab key combination used to switch tasks. Also blocks the Alt+Shift+Tab key combination. |
| AltWin | Blocks all keyboard combinations beginning with Alt + Windows logo key, for example Alt + Win + S. |
| BrowserBack | Blocks the Browser Back key. |
| BrowserFavorites | Blocks the Browser Favorites key. |
| BrowserForward | Blocks the Browser Forward key. |
| BrowserHome | Blocks the Browser Home key. |
| BrowserRefresh | Blocks the Browser Refresh key. |
| BrowserSearch | Blocks the Browser Search key. |
| BrowserStop | Blocks the Browser Stop key. |
| ControlAltDelete | Blocks the Control+Alt+Delete key combination used to open the Windows Security screen. |
| ControlEscape | Blocks the Control+Escape key combination used to open the Start screen. |
| ControlTab | Blocks the Control+Tab key combination used to switch windows. |
| ControlWindowsF | Blocks the Control+Windows logo key+F key combination used to open the Find Computers dialog box. |
| Ctrl | Blocks both Ctrl keys. |
| CtrlF4 | Blocks the Control+F4 key combination used to close the active window. |
| CtrlWin | Blocks the Ctrl + Windows logo key keyboard combination. |
| CustomFilters | Blocks the list of custom keys. |
| CustomScancodes | Blocks the list of custom scan codes. |
| DisableKeyboardFilterForAdministrators | Disables the keyboard filter for administrators. |
| Escape | Blocks the Escape key. |
| F21 | Blocks the F21 key. |
| ForceOffAccessibility | Disables all Ease of Access features and prevents users from enabling them. |
| LaunchApp1 | Blocks the Start Application 1 key. |
| LaunchApp2 | Blocks the Start Application 1 key. |
| LaunchMail | Blocks the Start Mail key. |
| LaunchMediaSelect | Blocks the Media Select key. |
| LeftShiftLeftAltNumLock | Blocks the Left Shift+Left Alt+Num Lock key combination used to open the Mouse Keys dialog box. |
| LeftShiftLeftAltPrintScreen | Blocks the Left Shift+Left Alt+Print Screen key combination used to open the High Contrast dialog box. |
| MediaNext | Blocks the Next Track key. |
| MediaPlayPause | Blocks the Play/Pause Media key. |
| MediaPrev | Blocks the Previous Track key. |
| MediaStop | Blocks the Stop media key. |
| Shift | Blocks both Shift keys. |
| ShiftControlEscape | Blocks the Shift+Control+Escape key combination used to open Task Manager. |
| ShiftWin | Blocks the Shift + Windows logo key. |
| VolumeDown | Blocks the Volume Down key. |
| VolumeMute | Blocks the Volume Mute key. |
| VolumeUp | Blocks the Volume Up key. |
| Windows | Blocks both Windows logo keys. |
| WindowsB | Blocks the Windows logo key+B key combination used to set focus in the Notification area. |
| WindowsBreak | Blocks the Windows logo key+Break key combination used to open the System dialog box. |
| WindowsC | Blocks the Windows logo key+C key combination used to open charms. |
| WindowsComma | Blocks the Windows logo key+Comma key combination used to peek at the desktop. |
| WindowsD | Blocks the Windows logo key+D key combination used to show the desktop. |
| WindowsDown | Blocks the Windows logo key+Down Arrow key combination used to minimize the active window. |
| WindowsE | Blocks the Windows logo key+E key combination used to open Windows Explorer. |
| WindowsEnter | Blocks the Windows logo key+Enter key combination used to start Narrator. |
| WindowsEscape | Blocks the Windows logo key+Esc key combination used to close the Magnifier application. |
| WindowsF | Blocks the Windows logo key+F key combination used to open Search. |
| WindowsF1 | Blocks the Windows logo key+F1 key combination used to open Windows Help. |
| WindowsH | Blocks the Windows logo key+H key combination used to open the Share charm. |
| WindowsHome | Blocks the Windows logo key+Home key combination used to minimize or restore all inactive windows. |
| WindowsI | Blocks the Windows logo key+I key combination used to open the Settings charm. |
| WindowsJ | Blocks the Windows logo key+J key combination used to swap between snapped and filled applications. |
| WindowsK | Blocks the Windows logo key+K key combination used to open the Connect charm. |
| WindowsL | Blocks the Windows logo key+L key combination used to lock the device. |
| WindowsLeft | Blocks the Windows logo key+Left Arrow key combination used to snap the active window to the left half of the screen. |
| WindowsM | Blocks the Windows logo key+M key combination used to minimize all windows. |
| WindowsMinus | Blocks the Windows logo key+Minus key combination used to zoom out. |
| WindowsO | Blocks the Windows logo key+O key combination used to lock device orientation. |
| WindowsP | Blocks the Windows logo key+P key combination used to cycle through Presentation Mode. Also blocks the Windows logo key+Shift+P and Windows logo key+Ctrl+P key combinations. |
| WindowsPageDown | Blocks the Windows logo key+Page Down key combination used to move a Microsoft Store app to the right monitor. |
| WindowsPageUp | Blocks the Windows logo key+Page Up key combination used to move a Microsoft Store app to the left monitor. |
| WindowsPeriod | Blocks the Windows logo key+Period key combination used to snap the current screen to the left or right gutter. Also blocks the Windows logo key+Shift+Period key combinations. |
| WindowsPlus | Blocks the Windows logo key+Plus key combination used to zoom in. |
| WindowsQ | Blocks the Windows logo key+Q key combination used to open the Search charm. |
| WindowsR | Blocks the Windows logo key+R key combination used to open the Run dialog box. |
| WindowsRight | Blocks the Windows logo key+Right Arrow key combination used to snap the active windows to the right half of the screen. |
| WindowsShiftDown | Blocks the Windows logo key+Shift+Down Arrow key combination used to minimize the active window. |
| WindowsShiftLeft | Blocks the Windows logo key+Shift+Left Arrow key combination used to move the active window to the left monitor. |
| WindowsShiftRight | Blocks the Windows logo key+Shift+Right Arrow key combination used to move the active window to the right monitor. |
| WindowsShiftUp | Blocks the Windows logo key+Shift+Up Arrow key combination used to maximize the active window vertically. |
| WindowsSlash | Blocks the Windows logo key+Slash key combination used to open the Input Method Editor (IME). |
| WindowsSpace | Blocks the Windows logo key+Spacebar key combination used to switch layout. |
| WindowsT | Blocks the Windows logo key+T key combination used to set focus on taskbar and cycle through programs. |
| WindowsTab | Blocks the Windows logo key+Tab key combination used to cycle through Microsoft Store apps. Also blocks the Windows logo key+Ctrl+Tab and Windows logo key+Shift+Tab key combinations. |
| WindowsU | Blocks the Windows logo key+Comma key combination used to peek at the desktop. |
| WindowsUp | Blocks the Windows logo key+Up Arrow key combination used to maximize the active window. |
| WindowsV | Blocks the Windows logo key+V key combination used to cycle through toasts in reverse order. |
| WindowsW | Blocks the Windows logo key+W key combination used to open the Settings Search charm. |
| WindowsZ | Blocks the Windows logo key+Z key combination used to open the app bar. |
Applies to
To determine whether a component applies to the image you’re building, load your image into Windows SIM and search for the component or setting name. For information on how to view components and settings, see Configure Components and Settings in an Answer File.
