diff --git a/content/chunk0/SimpleKeyEventHelper.entity.json b/content/chunk0/SimpleKeyEventHelper.entity.json index 218d1bb..4eb00c2 100644 --- a/content/chunk0/SimpleKeyEventHelper.entity.json +++ b/content/chunk0/SimpleKeyEventHelper.entity.json @@ -11,6 +11,7 @@ "inputCopying": { "Enable": { "Enable": ["cafe457f1b485c64"] }, "Disable": { "Disable": ["cafe457f1b485c64"] } }, "propertyAliases": { "m_pDataProvider": [{ "originalProperty": "m_pDataProvider", "originalEntity": "cafe457f1b485c64" }], + "m_bEnabled": [{ "originalProperty": "m_bEnabled", "originalEntity": "cafe457f1b485c64" }], "m_sModifierKeyName": [{ "originalProperty": "m_sModifierKeyName", "originalEntity": "cafe457f1b485c64" }], "m_sKeyName": [{ "originalProperty": "m_sKeyName", "originalEntity": "cafe457f1b485c64" }] }, @@ -32,6 +33,7 @@ }, "m_sClassName": { "type": "ZString", "value": "simplekeyeventhelper.SimpleKeyEventHelper" }, "m_pDataProvider": { "type": "SEntityTemplateReference", "value": null }, + "m_bEnabled": { "type": "bool", "value": true }, "m_sModifierKeyName": { "type": "ZString", "value": "None" }, "m_sKeyName": { "type": "ZString", "value": "" } }, diff --git a/content/chunk0/scaleform/001598DB8D4DC9DB.GFXF b/content/chunk0/scaleform/001598DB8D4DC9DB.GFXF index f1977ce..b6fc413 100644 Binary files a/content/chunk0/scaleform/001598DB8D4DC9DB.GFXF and b/content/chunk0/scaleform/001598DB8D4DC9DB.GFXF differ diff --git a/content/chunk0/scaleform/00FDD03F03A3CAB7.UICB b/content/chunk0/scaleform/00FDD03F03A3CAB7.UICB index b26070a..f5f5239 100644 Binary files a/content/chunk0/scaleform/00FDD03F03A3CAB7.UICB and b/content/chunk0/scaleform/00FDD03F03A3CAB7.UICB differ diff --git a/source/bin/SimpleKeyEventHelper.swf b/source/bin/SimpleKeyEventHelper.swf index 52ace3e..5c90564 100644 Binary files a/source/bin/SimpleKeyEventHelper.swf and b/source/bin/SimpleKeyEventHelper.swf differ diff --git a/source/src/simplekeyeventhelper/SimpleKeyEventHelper.as b/source/src/simplekeyeventhelper/SimpleKeyEventHelper.as index f95b5f5..2ed6f2f 100644 --- a/source/src/simplekeyeventhelper/SimpleKeyEventHelper.as +++ b/source/src/simplekeyeventhelper/SimpleKeyEventHelper.as @@ -79,6 +79,17 @@ public class SimpleKeyEventHelper extends BaseControl { } } + public function set m_bEnabled(bool:Boolean):void { + if (bool) { + m_enabled = true; + addKeyListeners(); + + } else { + m_enabled = false; + removeKeyListeners(); + } + } + public function set m_sModifierKeyName(string:String):void { m_modifierKeyName = string.toLowerCase(); } @@ -88,13 +99,11 @@ public class SimpleKeyEventHelper extends BaseControl { } public function Enable():void { - m_enabled = true; - addKeyListeners(); + m_bEnabled = true; } public function Disable():void { - m_enabled = false; - removeKeyListeners(); + m_bEnabled = false; } private function GetKeyCodeFromString(keyName:String):uint {