您可能要禁用笔记本电脑键盘的原因有很多。
您可能希望防止其他人意外按下笔记本电脑上的按键并可能导致数据丢失(data loss)或损坏。您也可以在清理笔记本电脑(cleaning out your laptop)时禁用键盘以清除积聚的灰尘或碎屑。
您的笔记本电脑键盘也可能因溢出(damaged from a spill)或损坏而损坏。在这种情况下,您可能需要使用其他键盘而不是笔记本电脑键盘。
无论出于何种原因,我们都会向您展示可用于禁用Windows 10笔记本电脑或MacBook上的键盘的不同安全方法。
禁用 Windows 笔记本电脑键盘(Disable a Windows Laptop Keyboard)
您可以使用以下方法在Windows 10(Windows 10)中禁用笔记本电脑键盘:
使用设备管理器禁用笔记本电脑键盘(Disable a Laptop Keyboard Using Device Manager)
设备管理器(Device Manager)是一个 Windows 工具,可显示笔记本电脑中安装的所有硬件的图形视图。您可以使用它来查看和管理硬件设备及其驱动程序。
您可以使用设备管理器(Device Manager)快速安全地禁用笔记本电脑的键盘,但它可能不适用于所有笔记本电脑。
- 右键单击开始(Start)>设备管理器(Device Manager)。
- 选择键盘(Keyboards)将其展开。
- 接下来,右键单击Standard PS/2 Keyboard > Disable device。
注意(Note):如果没有立即禁用键盘,请重新启动您的笔记本电脑。
使用设备安装限制禁用笔记本电脑键盘(Use Device Installation Restriction to Disable a Laptop Keyboard)
如果您无法使用设备管理器(Device Manager)禁用笔记本电脑上的键盘,您可以通过组策略编辑器(Group Policy Editor)启用硬件安装限制。这样做会阻止每次计算机启动时重新安装键盘。
注意(Note):您需要知道键盘的硬件 ID,然后您可以告诉组策略编辑器(Group Policy Editor)阻止Windows安装与该 ID 关联的设备。
- 右键单击开始(Start)>设备管理器(Device Manager)。
- 选择键盘(Keyboards)将其展开。
- 右键单击Standard PS/2 Keyboard>属性(Properties)。
- 选择详细信息(Details),然后从属性(Property)菜单中选择硬件 ID 。(Hardware Ids)
- 右键单击开始(Start)>运行(Run)并在运行对话框中键入gpedit.msc 。
- 导航到计算机配置(Computer Configuration)部分下的管理模板。(Administrative Templates)
- 选择系统(System)>设备安装(Device Installation)>设备安装限制(Device Installation Restrictions)。
- 找到阻止安装与任何这些设备实例 ID 匹配的设备(Prevent installation of devices that match any of these device instance IDs)选项并右键单击它。
- 选择编辑(Edit)。
- 接下来,选择已启用(Enabled)>显示(Show)。
- 转到Device Manager > Keyboards,右键单击第一个条目并选择Copy。
- 双击Value下的空行。将您复制的ID(ID)粘贴到您之前打开的策略的区域中。
- 在当前屏幕上选择确定,(OK)然后在组策略(Group Policy)屏幕上再次选择确定。(OK)
- 返回设备管理器(Device Manager),右键单击设备并选择卸载设备(Uninstall device)。
重新启动笔记本电脑以禁用键盘。
注意(Note):对列表中的其他硬件ID重复步骤 11 和 12。(IDs)您使用的 ID 可能不起作用,因此最好通过添加设备列表中的每个 ID 来确定。
如果要撤消安装限制,请打开键盘,在组策略编辑器中将策略设置为(Group Policy Editor)未配置(Not Configured),然后重新启动笔记本电脑。
使用不兼容的驱动程序禁用笔记本电脑键盘(Use an Incompatible Driver to Disable the Laptop Keyboard)
您还可以通过强制使用不兼容的驱动程序来禁用笔记本电脑键盘。我们不建议使用非正统的方法,因为它可能会导致BSOD或其他问题。另外,如果同一个驱动程序控制键盘和触摸板,您将失去两者的功能。
但是,当需要禁用键盘时,这是一个可行的选择,而其他两种方法不起作用。
- 右键单击开始(Start)>设备管理器(Device Manager)>键盘(Keyboards)。
- 接下来,右键单击Standard PS/2 Keyboard > Update driver。
- 选择浏览我的计算机以查找驱动程序软件(Browse my computer for driver software)。
- 接下来,选择让我从计算机上的可用驱动程序列表中选择(Let me pick from a list of available drivers on my computer)。
- 取消选择显示兼容硬件(Show compatible hardware)框。
- 选择键盘以外的制造商和型号,然后选择下一步(Next)。
- 更新驱动程序后,选择关闭。(Close.)
- 选择是(Yes)重新启动您的笔记本电脑。
笔记本电脑重新启动后,键盘将停止工作。
注意(Note):您可以通过重复前两个步骤重新启用它,但选择自动搜索驱动程序(Search automatically for drivers)。
在 Mac 上禁用笔记本电脑键盘(Disable a Laptop Keyboard on a Mac)
如果您使用的是MacBook,则可以禁用笔记本电脑键盘,尽管暂时使用鼠标键(Mouse Keys)或第三方键盘实用程序应用程序。
使用鼠标键在 Mac 上禁用笔记本电脑键盘(Disable a Laptop Keyboard on a Mac Using Mouse Keys)
您可以使用鼠标键(Mouse Keys)设置禁用旧版 macOS 中的笔记本电脑键盘。在较新的版本中,它只会禁用触控板。
启用鼠标键(Mouse Keys)将禁用键盘并使特定键可供您移动鼠标指针。总体目标是防止意外键入或不需要的输入。
- 选择Apple 菜单(Apple menu)>系统偏好设置(System Preferences)>通用访问(Universal Access)。
- 接下来,选择鼠标和触控板(Mouse and Trackpad),然后为鼠标键选择开(On)。
注意(Note):鼠标键(Mouse Keys)设置在 macOS Big Sur中可用,但您不能使用它来禁用键盘。
使用第三方工具在 Mac 上禁用笔记本电脑键盘(Disable a Laptop Keyboard on a Mac Using a Third Party Tool)
使用鼠标键(Mouse Keys)设置会暂时禁用键盘上的其他键。但是,它仅适用于较旧的 macOS 版本。
使用Karabiner-Elements(Karabiner-Elements)等第三方应用程序,您可以在不锁定屏幕或笔记本电脑的情况下禁用键盘。在高级(Advanced)设置下,您可以让它在连接另一台设备时禁用内置键盘。
防止意外键入和不需要的输入(Prevent Accidental Typing and Unwanted Input)
禁用笔记本电脑的键盘有几个优点。您可以更换内置键盘,保持其质量,或防止好奇的手指意外输入不需要的字符。
我们希望您能够使用本指南中的步骤禁用笔记本电脑的键盘。发表评论,让我们知道什么对您有用。
How to Disable Your Laptop Keyboard in Windows and macOS
There are many reaѕons why you may want to disable a laptop keyboаrd.
You may want to prevent others from accidentally pressing keys on your laptop and possibly cause data loss or corruption. You could also disable the keyboard when cleaning out your laptop to remove accumulated dust or debris.
Your laptop keyboard may also be damaged from a spill or broken. In this case, you may need to use another keyboard instead of your laptop keyboard.
Whatever the reason, we’ll show you different safe methods you can use to disable the keyboard on a Windows 10 laptop or MacBook.
Disable a Windows Laptop Keyboard
You can disable a laptop keyboard in Windows 10 using:
- Device Manager
- Device installation restriction
- An incompatible driver
Disable a Laptop Keyboard Using Device Manager
Device Manager is a Windows tool that shows a graphical view of all the hardware installed in your laptop. You can use it to see and manage the hardware devices along with their drivers.
You can quickly and safely disable your laptop’s keyboard using Device Manager, though it may not work for all laptops.
- Right-click Start > Device Manager.
- Select Keyboards to expand it.
- Next, right-click Standard PS/2 Keyboard > Disable device.
Note: Restart your laptop if the keyboard isn’t disabled immediately.
Use Device Installation Restriction to Disable a Laptop Keyboard
If you can’t use Device Manager to disable the keyboard on your laptop, you can enable a hardware installation restriction via the Group Policy Editor. Doing this stops your keyboard from being reinstalled each time your computer starts up.
Note: You need to know the keyboard’s hardware ID, and then you can tell the Group Policy Editor to prevent Windows from installing devices associated with that ID.
- Right-click Start > Device Manager.
- Select Keyboards to expand it.
- Right-click Standard PS/2 Keyboard > Properties.
- Select Details and then select Hardware Ids from the Property menu.
- Right-click Start > Run and type gpedit.msc in the Run dialog box.
- Navigate to Administrative Templates under the Computer Configuration section.
- Select System > Device Installation > Device Installation Restrictions.
- Find the Prevent installation of devices that match any of these device instance IDs option and right-click it.
- Select Edit.
- Next, select Enabled > Show.
- Go to Device Manager > Keyboards, right-click the first entry and select Copy.
- Double-click the empty row under Value. Paste the ID you copied into the area in the policy you opened earlier.
- Select OK on the current screen and select OK again on the Group Policy screen.
- Go back to Device Manager, right-click on the device and select Uninstall device.
Restart your laptop to disable the keyboard.
Note: Repeat steps 11 and 12 with other hardware IDs on the list. The ID you used probably didn’t work, so it’s good to be sure by adding each ID from the device list.
If you want to undo the restriction installation, turn on the keyboard, set the policy to Not Configured in the Group Policy Editor, and restart your laptop.
Use an Incompatible Driver to Disable the Laptop Keyboard
You can also disable a laptop keyboard by forcing it to use an incompatible driver. We don’t recommend using an unorthodox method because it may cause a BSOD or other issues. Plus, if the same driver controls the keyboard and touchpad, you’ll lose the functionality of both.
However, it’s a viable option when it’s necessary to disable the keyboard, and the other two methods don’t work.
- Right-click Start > Device Manager > Keyboards.
- Next, right-click Standard PS/2 Keyboard > Update driver.
- Select Browse my computer for driver software.
- Next, select Let me pick from a list of available drivers on my computer.
- Deselect the Show compatible hardware box.
- Select a manufacturer and model other than that of your keyboard and then select Next.
- Once the driver is updated, select Close.
- Select Yes to reboot your laptop.
After the laptop restarts, the keyboard will cease to function.
Note: You can re-enable it by repeating the first two steps but select Search automatically for drivers instead.
Disable a Laptop Keyboard on a Mac
If you’re using a MacBook, you can disable a laptop keyboard, albeit temporarily using Mouse Keys or a third-party keyboard utility app.
Disable a Laptop Keyboard on a Mac Using Mouse Keys
You can use the Mouse Keys setting to disable a laptop keyboard in older versions of macOS. In newer versions, it will only disable the trackpad.
Enabling Mouse Keys disables the keyboard and makes specific keys available for you to move the mouse pointer. The overall goal is to prevent accidental typing or unwanted input.
- Select Apple menu > System Preferences > Universal Access.
- Next, select Mouse and Trackpad and select On for Mouse Keys.
Note: The Mouse Keys setting is available in macOS Big Sur, but you can’t use it to disable the keyboard.
Disable a Laptop Keyboard on a Mac Using a Third Party Tool
Using the Mouse Keys setting disables other keys temporarily on your keyboard. But, it only works with older macOS versions.
With a third-party app like Karabiner-Elements, you can disable your keyboard without locking the screen or your laptop. Under the Advanced settings, you can have it disable the built-in keyboard when another device is connected.
Prevent Accidental Typing and Unwanted Input
Disabling your laptop’s keyboard has several advantages. You can replace your built-in keyboard, preserve its quality, or keep curious fingers from accidentally typing unwanted characters.
We hope you were able to disable your laptop’s keyboard using the steps in this guide. Leave a comment and let us know what worked for you.