开发者

Keycodes of function keys with F-lock off?

Many recent keyboard from Microsoft and Logitech have a so-called F-Lock key, which toggles the function keys F1 to F12 between their traditional keycodes and new meanings that are printed onto the keys: F1=Help F2=Undo F3=Redo F4=Open ... . (See also http://en.wikipedia.org/wiki/F-Lock.)

This means that long-established shortcuts such as Alt+F4 no longer work if the F-lock is off, and googling shows that quite a few people are unhappy about this.

So I'm wondering, what virtual key (VK) codes do the function keys send when F-lock is off? VK_F13 to VK_F24 perhaps? Or do they n开发者_如何学编程ot trigger standard keyboard events at all?

(I haven't got such a keyboard to try and find out myself, and didn't manage to dig up anything on MSDN about this.)


This article says you can't detect F-lock programmatically http://jtsang.mvps.org/flock.html


I was just trying to find this out so that I could make an application continue to work with F-Lock off and couldn't find a list so thought I'd post what I found. Rather than any new unique key-codes when F-Lock is off the following conventional key combinations are sent:

F1 = F1 (Help)

F2 = Ctrl+Z (Undo)

F3 = Ctrl+Y (Redo)

F4 = Ctrl+N (New)

F5 = Ctrl+O (Open)

F6 = Ctrl+F4 (Close)

F7 = Ctrl+R (Reply)

F8 = Ctrl+F (Fwd)

F9 = Ctrl+Enter (Send)

F10 = F7 (Spell)

F11 = Ctrl+S (Save)

F12 = Ctrl+P (Print)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜