读取"Fn".钥匙 [英] Reading "Fn" key
本文介绍了读取"Fn".钥匙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想找到最简单的方法来在Python(Windows)中从键盘上读取 Fn 键.我尝试使用
I'd like to find out the easiest way how to read Fn key from my keyboard in Python (Windows).I've tried to use Pygame library, but it didn't work for Fn key.
推荐答案
"Fn"键通常是专有的,特定于设备的修饰符,由设备驱动程序(或硬件本身)处理.这不是一个普通的按钮,您无法在代码中捕获它.老实说,我无法想象你为什么会想要.
The "Fn" key is usually a proprietary, device-specific modifier that is handled by the device driver (or the hardware itself). It's not a normal button, and you can't catch it in your code. To be honest, I can't imagine why you'd ever possibly want to.
这篇关于读取"Fn".钥匙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文