Use the members of the newly added KeyActionType object because static members were uninitialized. Handle PlayMacroAction in the KeyActionFactory.
This commit is contained in:
@@ -12,6 +12,17 @@ enum KeyActionId {
|
||||
PlayMacroAction = 7
|
||||
}
|
||||
|
||||
let KeyActionType = {
|
||||
NoneAction : 'none',
|
||||
KeystrokeAction : 'keystroke',
|
||||
KeystrokeWithModifiersAction : 'keystrokeWithModifiers',
|
||||
DualRoleKeystrokeAction : 'dualRoleKeystroke',
|
||||
SwitchLayerAction : 'switchLayer',
|
||||
SwitchKeymapAction : 'switchKeymap',
|
||||
MouseAction : 'mouse',
|
||||
PlayMacroAction : 'playMacro'
|
||||
}
|
||||
|
||||
abstract class KeyAction implements Serializable<KeyAction> {
|
||||
abstract fromJsObject(jsObject: any): KeyAction;
|
||||
abstract fromBinary(buffer: UhkBuffer): KeyAction;
|
||||
|
||||
Reference in New Issue
Block a user