Class orion.commands.CommandKeyBinding
Defined in: </shared/eclipse/e4/orion/I201303111541/plugins/org.eclipse.orion.client.ui/web/orion/commands.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
orion.commands.CommandKeyBinding(keyCode, mod1, mod2, mod3, mod4, domScope, scopeName)
Temporary copy of editor key binding.
|
Method Attributes | Method Name and Description |
---|---|
equals(kb)
Returns whether this key binding is the same as the given parameter.
|
|
match(e)
Returns whether this key binding matches the given key event.
|
Class Detail
orion.commands.CommandKeyBinding(keyCode, mod1, mod2, mod3, mod4, domScope, scopeName)
Temporary copy of editor key binding. Will be removed in the next released.
- Parameters:
- {String|Number} keyCode
- the key code.
- {Boolean} mod1
- the primary modifier (usually Command on Mac and Control on other platforms).
- {Boolean} mod2
- the secondary modifier (usually Shift).
- {Boolean} mod3
- the third modifier (usually Alt).
- {Boolean} mod4
- the fourth modifier (usually Control on the Mac).
- {String|DomElement} domScope
- the element for which this key binding is active. If not specified, the key binding is considered to be global.
- {String} scopeName
- the name of the scope to be used when listing key bindings. Must be specified if a domScope is specified.
Method Detail
{Boolean}
equals(kb)
Returns whether this key binding is the same as the given parameter.
- Parameters:
- {orion.commands.CommandKeyBinding} kb
- the key binding to compare with.
- Returns:
- {Boolean} whether or not the parameter and the receiver describe the same key binding.
{Boolean}
match(e)
Returns whether this key binding matches the given key event.
- Parameters:
- e
- the key event.
- Returns:
- {Boolean}
true
whether the key binding matches the key event.