Last active
August 29, 2015 14:07
-
-
Save mnjul/03c5343e001c1c5981ae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/build/config/phone/apps-engineering.list b/build/config/phone/apps-engineering.list | |
index ef3ac1e..0cf313f 100644 | |
--- a/build/config/phone/apps-engineering.list | |
+++ b/build/config/phone/apps-engineering.list | |
@@ -16,6 +16,7 @@ dev_apps/test-agent | |
dev_apps/test-container | |
dev_apps/test-iac-publisher | |
dev_apps/test-iac-subscriber | |
+dev_apps/test-keyboard-app | |
dev_apps/test-otasp | |
dev_apps/test-receiver-1 | |
dev_apps/test-receiver-2 | |
diff --git a/dev_apps/test-keyboard-app/js/main.js b/dev_apps/test-keyboard-app/js/main.js | |
index e8247be..91f93b2 100644 | |
--- a/dev_apps/test-keyboard-app/js/main.js | |
+++ b/dev_apps/test-keyboard-app/js/main.js | |
@@ -6,10 +6,14 @@ function init() { | |
window.navigator.mozInputMethod.oninputcontextchange = function() { | |
inputContext = navigator.mozInputMethod.inputcontext; | |
+ console.log("input context change! at ", new Date()); | |
resizeWindow(); | |
}; | |
- window.addEventListener('resize', resizeWindow); | |
+ window.addEventListener('resize', function(){ | |
+ console.log("resize event!", new Date()); | |
+ resizeWindow(); | |
+ }); | |
keyboardElement.addEventListener('mousedown', function onMouseDown(evt) { | |
// Prevent loosing focus to the currently focused app | |
@@ -46,6 +50,7 @@ function init() { | |
} | |
function resizeWindow() { | |
+ console.log("called resize window!"); | |
window.resizeTo(window.innerWidth, keyboardElement.clientHeight); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment