s/KeyLayer/LayerName/g
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
enum KeyLayer {
|
enum LayerName {
|
||||||
mod,
|
mod,
|
||||||
fn,
|
fn,
|
||||||
mouse
|
mouse
|
||||||
@@ -10,12 +10,12 @@ class SwitchLayerAction extends KeyAction {
|
|||||||
|
|
||||||
isLayerToggleable: boolean;
|
isLayerToggleable: boolean;
|
||||||
|
|
||||||
// @assertEnum(KeyLayer)
|
// @assertEnum(LayerName)
|
||||||
private layer: KeyLayer;
|
private layer: LayerName;
|
||||||
|
|
||||||
_fromJsObject(jsObject: any): SwitchLayerAction {
|
_fromJsObject(jsObject: any): SwitchLayerAction {
|
||||||
this.assertKeyActionType(jsObject);
|
this.assertKeyActionType(jsObject);
|
||||||
this.layer = KeyLayer[<string> jsObject.layer];
|
this.layer = LayerName[<string> jsObject.layer];
|
||||||
this.isLayerToggleable = jsObject.toggle;
|
this.isLayerToggleable = jsObject.toggle;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -31,7 +31,7 @@ class SwitchLayerAction extends KeyAction {
|
|||||||
_toJsObject(): any {
|
_toJsObject(): any {
|
||||||
return {
|
return {
|
||||||
keyActionType: keyActionType.SwitchLayerAction,
|
keyActionType: keyActionType.SwitchLayerAction,
|
||||||
layer: KeyLayer[this.layer],
|
layer: LayerName[this.layer],
|
||||||
toggle: this.isLayerToggleable
|
toggle: this.isLayerToggleable
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user