Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Unified Diff: ui/keyboard/resources/webui/api_adapter.js

Issue 26258003: Add a full QWERTY layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix edge case in WebUI Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/keyboard/resources/webui/api_adapter.js
diff --git a/ui/keyboard/resources/webui/api_adapter.js b/ui/keyboard/resources/webui/api_adapter.js
index 17d84b9d7c35c5c4c1a953bca5406d9a7e865bbb..415a04215604c5890ca4d5be6750081fad6b8d57 100644
--- a/ui/keyboard/resources/webui/api_adapter.js
+++ b/ui/keyboard/resources/webui/api_adapter.js
@@ -34,7 +34,10 @@ function hideKeyboard() {
* "text" are supported.
*/
function OnTextInputBoxFocused(inputContext) {
- keyboard.inputType = inputContext.type;
+ // Do not want to use the system keyboard for passwords in webui.
+ if (inputContext.type == 'password')
+ inputContext.type = 'text';
+ keyboard.inputTypeValue = inputContext.type;
}
/**

Powered by Google App Engine
This is Rietveld 408576698