Keycodes of function keys with F-lock off?

Posted by ak on Stack Overflow See other posts from Stack Overflow or by ak
Published on 2010-03-14T22:15:45Z Indexed on 2010/03/14 22:25 UTC
Read the original article Hit count: 365

Filed under:
|

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 not 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.)

© Stack Overflow or respective owner

Related posts about Windows

Related posts about keyboard