Class fever.app.accelerator.ShortcutLocator

Description

ShortcutLocator class.

Example

   var map : ShortcutMap = ShortcutLocator.getMap( "map1" );
   map.registerEvent( Keyboard.onKeyCONTROL, this, _onKey );
   map.registerCommand( Keyboard.onKeyADD, new CommandTest() );
   map.load();
 

Method Index

getMap(), isRegistered(), unregister()

Inherited from ShortcutMap

Method Detail

getMap

static public function getMap(mapName:String):ShortcutMap

Returns ShortcutMap registred with passed-in mapName identifier.
If map does not exist, creates it.

Parameters

mapNameA shortcut map identifier

Return

Registred ShortcutMap map

isRegistered

static public function isRegistered(mapName:String):Boolean

Returns true if a passed-in is registred.

Parameters

mapNameA shortcut map identifier

Return

true if shortcut is registred

unregister

public function unregister(mapName:String):Void

Unregisters ShortcutMap registred with passed-in mapName.

All shortcuts are disabled.

Parameters

mapNameA shortcut map identifier

Overrides

unregister() in fever.app.accelerator.ShortcutMap