Changeset 142116 in webkit
- Timestamp:
- Feb 7, 2013 7:07:03 AM (11 years ago)
- Location:
- trunk/Source/WebKit/blackberry
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/blackberry/ChangeLog
r142037 r142116 1 2013-02-07 Mike Fenton <mifenton@rim.com> 2 3 [BlackBerry] Send type details with IMF mask as part of focus gained. 4 https://bugs.webkit.org/show_bug.cgi?id=109086 5 6 Reviewed by Yong Li. 7 8 PR 292609. 9 10 Add masking options based on VKB type to the IMF mask. 11 12 Reviewed Internally by Nima Ghanavatian. 13 14 * WebKitSupport/InputHandler.cpp: 15 (BlackBerry::WebKit::addInputStyleMaskForKeyboardType): 16 (WebKit): 17 (BlackBerry::WebKit::InputHandler::setElementFocused): 18 1 19 2013-02-06 Jakob Petsovits <jpetsovits@rim.com> 2 20 -
trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp
r141623 r142116 900 900 } 901 901 902 static void addInputStyleMaskForKeyboardType(int64_t& inputMask, VirtualKeyboardType keyboardType) 903 { 904 switch (keyboardType) { 905 case VKBTypeUrl: 906 inputMask |= IMF_URL_TYPE; 907 break; 908 case VKBTypePassword: 909 inputMask |= IMF_PASSWORD_TYPE; 910 break; 911 case VKBTypePin: 912 inputMask |= IMF_PIN_TYPE; 913 break; 914 case VKBTypePhone: 915 inputMask |= IMF_PHONE_TYPE; 916 break; 917 case VKBTypeEmail: 918 inputMask |= IMF_EMAIL_TYPE; 919 break; 920 default: 921 break; 922 } 923 } 924 902 925 void InputHandler::setElementFocused(Element* element) 903 926 { … … 938 961 if (keyboardType == VKBTypeNotSet) 939 962 keyboardType = convertInputTypeToVKBType(type); 963 964 addInputStyleMaskForKeyboardType(m_currentFocusElementTextEditMask, keyboardType); 940 965 941 966 VirtualKeyboardEnterKeyType enterKeyType = keyboardEnterKeyTypeAttribute(element);
Note: See TracChangeset
for help on using the changeset viewer.