mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-18 22:37:43 +00:00
fix(web): Remove base key from popup keys
This commit is contained in:
parent
4c839fa0de
commit
bd2b87f5c0
2 changed files with 4 additions and 9 deletions
|
|
@ -40,7 +40,7 @@ namespace com.keyman.osk {
|
|||
}
|
||||
};
|
||||
|
||||
// iOS now relies upon native-mode popup key management, so we only implement these hybrid-targetted
|
||||
// iOS now relies upon native-mode popup key management, so we only implement these hybrid-targeted
|
||||
// methods when embedding in Android.
|
||||
let device = com.keyman.singleton.util.device;
|
||||
|
||||
|
|
@ -56,10 +56,8 @@ namespace com.keyman.osk {
|
|||
if(key['subKeys'] && (typeof(window['oskCreatePopup']) == 'function')) {
|
||||
var xBase = dom.Utils.getAbsoluteX(key) - dom.Utils.getAbsoluteX(this.kbdDiv) + key.offsetWidth/2,
|
||||
yBase = dom.Utils.getAbsoluteY(key);
|
||||
|
||||
if(util.device.formFactor == 'phone') {
|
||||
this.prependBaseKey(key);
|
||||
}
|
||||
|
||||
// No longer prepend base key to subkey array
|
||||
|
||||
this.popupBaseKey = key;
|
||||
this.popupPending=true;
|
||||
|
|
|
|||
|
|
@ -1509,10 +1509,7 @@ namespace com.keyman.osk {
|
|||
subKeys.id='kmw-popup-keys';
|
||||
this.popupBaseKey = e;
|
||||
|
||||
// Does the popup array include the base key? *** condition for phone only ***
|
||||
if(device.formFactor == 'phone') {
|
||||
this.prependBaseKey(e);
|
||||
}
|
||||
// No longer prepend base key to popup array
|
||||
|
||||
// Must set position dynamically, not in CSS
|
||||
var ss=subKeys.style;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue