mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-08 08:37:42 +00:00
change(web/engine): headlessSpec -> coreSpec
This commit is contained in:
parent
15e8079430
commit
84339be3cc
5 changed files with 8 additions and 7 deletions
|
|
@ -162,7 +162,7 @@ namespace com.keyman.dom {
|
|||
s.LisVirtualKey = LisVirtualKeyCode || e.type != 'keypress';
|
||||
|
||||
// Physically-typed keys require use of a 'desktop' form factor and thus are based on a virtual "physical" Device.
|
||||
s.device = keyman.util.physicalDevice.headlessSpec;
|
||||
s.device = keyman.util.physicalDevice.coreSpec;
|
||||
|
||||
// This is based on a KeyboardEvent, so it's not considered 'synthetic' within web-core.
|
||||
s.isSynthetic = false;
|
||||
|
|
@ -188,7 +188,7 @@ namespace com.keyman.dom {
|
|||
vkCode: s.Lcode, // Helps to merge OSK and physical keystroke control paths.
|
||||
Lstates: s.Lstates,
|
||||
kName: '',
|
||||
device: keyman.util.physicalDevice.headlessSpec,
|
||||
device: keyman.util.physicalDevice.coreSpec,
|
||||
isSynthetic: false
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -251,7 +251,7 @@ namespace com.keyman {
|
|||
return this._styles;
|
||||
}
|
||||
|
||||
public get headlessSpec(): text.EngineDeviceSpec {
|
||||
public get coreSpec(): text.EngineDeviceSpec {
|
||||
return new text.EngineDeviceSpec(this.browser, this.formFactor, this.OS, this.touchable);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -480,7 +480,7 @@ namespace com.keyman.text {
|
|||
Lstates: lstates,
|
||||
LisVirtualKey: true,
|
||||
kName: '',
|
||||
device: keyman.util.physicalDevice.headlessSpec, // As we're executing a hardware keystroke.
|
||||
device: keyman.util.physicalDevice.coreSpec, // As we're executing a hardware keystroke.
|
||||
isSynthetic: false
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ namespace com.keyman.osk {
|
|||
kLayer: layer,
|
||||
kbdLayer: e.displayLayer,
|
||||
kNextLayer: e.nextlayer,
|
||||
device: keyman.util.device.headlessSpec, // The OSK's events always use the 'true' device.
|
||||
device: keyman.util.device.coreSpec, // The OSK's events always use the 'true' device.
|
||||
isSynthetic: true
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -25,8 +25,9 @@ namespace com.keyman.text {
|
|||
}
|
||||
|
||||
/**
|
||||
* This class provides an abstract version of com.keyman.Device that is headless-friendly,
|
||||
* containing only the information needed by web-core for text processing use.
|
||||
* This class provides an abstract version of com.keyman.Device that is core-friendly,
|
||||
* containing only the information needed by web-core for text processing use, devoid
|
||||
* of any direct references to the DOM.
|
||||
*/
|
||||
export class EngineDeviceSpec {
|
||||
readonly browser: Browser;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue