键盘布局不仅指定了按键在键盘上的物理位置,而且决定了当按下这些按键时产生的字符值。
每个键盘布局都有一个句柄标识对应的布局和语言。这个句柄的低位字代表了语言标识符,高位字代表了键盘的物理布局的设备句柄。
A keyboard layout not only specifies the physical position of the keys on the keyboard but also determines the character values generated by pressing those keys. Each layout identifies the current input language and determines which character values are generated by which keys and key combinations.
Every keyboard layout has a corresponding handle that identifies the layout and language. The low word of the handle is a language identifier. The high word is a device handle, specifying the physical layout, or is zero, indicating a default physical layout. The user can associate any input language with a physical layout. For example, an English-speaking user who very occasionally works in French can set the input language of the keyboard to French without changing the physical layout of the keyboard. This means the user can enter text in French using the familiar English layout.
发表评论