วันพุธที่ 9 พฤษภาคม พ.ศ. 2555

Keyboard Mapping for Windows Phone Emulator

Keyboard Mapping for Windows Phone Emulator

This topic describes the keyboard mapping in Windows Phone Emulator and how to use the keyboard. The emulator supports mapping of the keyboard on your development computer to the hardware keyboard on a Windows Phone. By default, the keyboard is not enabled. This implementation is equivalent to a sliding keyboard that must be deployed before you can use it. Before you enable the keyboard, the emulator accepts key input only from the control keys such as F1.
NoteNote:
The emulator does not support orientation changes when the keyboard is enabled. You must disable the keyboard, and then rotate the emulator.
Important noteImportant Note:
Special characters on the keyboard of a localized version of a Windows development computer are not supported by Windows Phone Emulator in this release. To enter special characters that are present on a localized keyboard, use the Software Input Panel (SIP) instead.

To enable the keyboard in the emulator

  • Press the PAGE UP key.
    -or-
  • Press the PAUSE/BREAK key.

To disable the keyboard in the emulator

  • Press the PAGE DOWN key.
    -or-
  • Press the PAUSE/BREAK key.
The following table lists the keys on a development computer keyboard and their corresponding keys on a Windows Phone hardware keyboard.
Computer keyboard keyWindows Phone hardware keyNotes
ESCNot applicable.Disabled.
F1BACK
F2START
F3SEARCH
F4Not applicable.Disabled.
F5Not applicable.Disabled.
F6CAMERA HALFA dedicated camera key that is pressed halfway. Not supported in Visual Studio 2010 Express for Windows Phone.
F7CAMERA FULLA dedicated camera key. Not supported in Visual Studio 2010 Express for Windows Phone.
F8Not applicable.Disabled.
F9VOLUME UP
F10VOLUME DOWN
F12Not applicable.Disabled.
PRINT SCREENPOWERNot supported in Visual Studio 2010 Express for Windows Phone.
PAUSE/BREAKNot applicable.Enables the hardware keyboard.
PAGE UPNot applicable.Enables the hardware keyboard.
PAGE DOWNNot applicable.Disables the hardware keyboard.
TABNot applicable.Disabled, except in a multiline text box, if the application supports tabbing.
CAPS LOCKNot applicable.Disabled.
Windows logo keyNot applicable.Disabled. Shows the development computer Start menu.
Left CTRLFN
Right CTRLSYMBOL (SYM)
Left ALTACCENTThe ACCENT key on the device has the ÄÉ symbol on it.
Right ALTEMOTICONThe EMOTICON key on the device has a smiley face on it.
MENUNot applicable.Disabled.
This section describes how to use some of the keyboard keys on Windows Phone Emulator. The behavior of the keys is the same as on a Windows Phone device.

Special Keys

The following table describes the behavior of special keys on the keyboard.
Key NameEmulator keyKey usage
ENTERAP_Con_WindowsPhone_Enter_EmulatorPress to insert a new line. Press and hold to insert multiple lines.
BACKSPACEAP_Con_WindowsPhone_Backspace_EmulatorPress to delete a single character to the left of the cursor. Press and hold to delete multiple characters. Press and hold for a longer period to delete multiple words.
SPACEAP_Con_WindowsPhone_Space_EmulatorPress to insert a single space. Press and hold to insert multiple spaces.
SHIFTAP_Con_WindowsPhone_ShiftKey_EmulatorPress to switch between Shift On and Shift Off. Shift On mode remains in effect until the next key press completes. Press and hold to switch between Shift Off and Shift Lock. When FN mode is FN On or FN Locked, press SHIFT to switch between Shift Off and Shift Lock.
EMOTICONAP_Con_WindowsPhone_Emoticon_EmulatorPress to open the emoticon picker.
&123AP_Con_WindowsPhone_SymbolsAndNumbers_EmulatorPress to display symbols and numbers keyboard.
abcdAP_Con_WindowsPhone_Abcd_EmulatorPress to display the default alphabetic keyboard.
LEFT ARROW AP_Con_WindowsPhone_LeftArrow_EmulatorPress to display the next page of keys.
RIGHT ARROWAP_Con_WindowsPhone_RightArrow_EmulatorPress to display the previous page of keys.
AccentsAP_Con_WindowsPhone_Accent_EmulatorPress and hold a letter to display the available accented forms of the letter.
LanguageAP_Con_WindowsPhone_Lang_EmulatorPress multiple times to cycle through the available languages. Press and hold to display the available languages.
For more information, see On-Screen Keyboard Input Scope Index for Windows Phone.

Shift Mode

Use Shift mode to type uppercase letters. If you switch between editable fields, the Shift mode resets to Shift Off. The Shift mode state of the hardware keyboard is independent of the Shift mode state of the software input panel (SIP).
If you press the SHIFT key, and while holding the Shift key down press a second key, the second key is treated as if Shift mode is set to Shift On. This action is not treated as a press-and-hold action of the SHIFT key. After you release the SHIFT key, Shift mode is set to Shift Off.
The following table shows the supported Shift modes.
ModeSymbolNotes
Shift OffShift Off Function Off ButtonThis is the default Shift mode.
Shift OnShift Button OnShift On mode remains in effect until the next key press completes, unless the next key pressed is FN or SYM, which do not reset the Shift mode.
Shift Lock (CAPS LOCK)Shift Button LockedShift Lock locks the keyboard in Shift On mode.

FN Mode

The FN mode determines whether the primary or secondary actions of a key are enabled. In FN On mode, the secondary action is enabled. If you switch between editable fields, the FN mode resets to FN Off.
If you press the FN key, and while holding the FN key down you press a second key, the second key is treated as if FN mode is set to FN On. This action is not treated as a press-and-hold action of the FN key. After you release the FN key, FN mode is set to FN Off.
The following table shows the supported FN modes.
ModeSymbolNotes
FN OffShift Off Function Off ButtonThis is the default FN mode.
FN OnFunction ButtonFN On mode remains in effect until the next key press completes, unless the next key pressed is SHIFT or SYM, which do not reset the FN mode.
FN LockFunction Button LockedFN Lock locks the keyboard in FN On mode.

Shift Mode and FN Mode Combinations

The following table shows the input result for various combinations of Shift mode and FN mode.
FN modeShift OffShift OnShift Lock
FN OffPrimary action or character, lowercase characters.Primary action or character, uppercase characters.Primary action or character, consecutive uppercase characters. Used for acronyms or inserting words in all uppercase.
FN OnSecondary action or character, lowercase characters. Used for symbols or accented letters.Secondary action or character, uppercase characters. Used for uppercase accented letters.Secondary action or character, consecutive uppercase characters. Used for acronyms or inserting words with accents in all uppercase.
FN LockSecondary action or character, lowercase characters. Used for numeric values.Not supported.Not supported.

ไม่มีความคิดเห็น:

แสดงความคิดเห็น