Merge pull request #5377 from keymanapp/feat/android/cherry-pick/5258-hide-textarea-for-perf

feat(android): hide textarea for perf 🍒
This commit is contained in:
Marc Durdin 2021-06-29 07:18:20 +10:00 • committed by GitHub
commit bcdf1975f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,7 +41,7 @@
ta.readOnly = false;
// Tell KMW the default banner height to use
com.keyman.osk.Banner.DEFAULT_HEIGHT =
com.keyman.osk.Banner.DEFAULT_HEIGHT =
Math.ceil(window.jsInterface.getDefaultBannerHeight() / window.devicePixelRatio);
kmw.addEventListener('keyboardloaded', setIsChiral);
@ -320,7 +320,7 @@
function executePopupKey(keyID, keyText) {
var kmw=window['keyman'];
// KMW only needs keyID to process the popup key. keyText merely logged to console
//window.console.log('executePopupKey('+keyID+'); keyText: ' + keyText);
kmw['executePopupKey'](keyID);
@ -366,8 +366,6 @@
</style>
</head>
<body class="kmw-embedded keyman-app">
<center>
<textarea id="ta" cols="1" rows="1" style="position:absolute; left:-500px; top:0px;"></textarea>
</center>
<textarea id="ta" cols="1" rows="1" style="display: none;"></textarea>
</body>
</html>