Class Index | File Index

## Classes

- _global_
- Boolean
- Date
- eclipse.sites
- eclipse.sites.SiteRenderer
- eclipse.sites.SiteTreeModel
- Object
- orion
- orion.breadcrumbs.BreadCrumbs
- orion.commands.Command
- orion.commands.CommandService
- orion.compare.DiffProvider
- orion.compare.rulers.CompareOverviewRuler
- orion.compare.rulers.CompareRuler
- orion.compare.rulers.LineNumberCompareRuler
- orion.compareUtils
- orion.contentAssist.CssContentAssistProvider
- orion.dialogs.DialogService
- orion.editor.AbstractStyler
- orion.editor.ContentAssist
- orion.editor.Editor
- orion.editor.HtmlGrammar
- orion.editor.JavaScriptContentAssistProvider
- orion.editor.TextMateStyler
- orion.editor.util
- orion.explorer-table.FileExplorer
- orion.explorer.Explorer
- orion.explorer.ExplorerFlatModel
- orion.explorer.ExplorerModel
- orion.explorer.SelectionRenderer
- orion.favorites.Favorites
- orion.favorites.FavoritesService
- orion.fileClient.FileClient
- orion.fileCommands
- orion.git.GitClonesExplorer
- orion.git.GitClonesModel
- orion.git.GitCommitNavigator
- orion.git.GitService
- orion.globalCommands
- orion.links.TextLinkService
- orion.log.LogService
- orion.outliner.Outliner
- orion.outliner.OutlineService
- orion.pluginregistry.Plugin
- orion.pluginregistry.PluginRegistry
- orion.preferences.Preferences
- orion.preferences.PreferencesService
- orion.problems.ProblemService
- orion.profile.usersClient.UsersClient
- orion.searchClient.Searcher
- orion.searchResults.SearchResultsGenerator
- orion.selection.Selection
- orion.serviceregistry.EventTarget
- orion.serviceregistry.Service
- orion.serviceregistry.ServiceReference
- orion.serviceregistry.ServiceRegistration
- orion.serviceregistry.ServiceRegistry
- orion.siteService.SiteConfiguration
- orion.siteService.SiteService
- orion.status.StatusReportingService
- orion.textview
- orion.textview.Annotation
- orion.textview.AnnotationIterator
- orion.textview.AnnotationModel
- orion.textview.AnnotationRuler
- orion.textview.ContextMenuEvent
- orion.textview.DestroyEvent
- orion.textview.FoldingAnnotation
- orion.textview.KeyBinding
- orion.textview.LineNumberRuler
- orion.textview.LineStyleEvent
- orion.textview.ModelChangedEvent
- orion.textview.ModelChangingEvent
- orion.textview.ModifyEvent
- orion.textview.OverviewRuler
- orion.textview.Projection
- orion.textview.ProjectionTextModel
- orion.textview.Ruler
- orion.textview.ScrollEvent
- orion.textview.Selection
- orion.textview.SelectionEvent
- orion.textview.Style
- orion.textview.StyleRange
- orion.textview.TextModel
- orion.textview.TextView
- orion.textview.UndoStack
- orion.textview.VerifyEvent
- orion.treetable.TableTree
- orion.util
- orion.widgets.DirectoryTreeModel
- orion.widgets.OpenResourceDialog
- orion.widgets.SiteEditor
- String

# Class orion.textview.KeyBinding

A KeyBinding represents of a key code and a modifier state that can be triggered by the user using the keyboard.
Defined in: </shared/eclipse/e4/orion/I201110211442/plugins/org.eclipse.orion.client.editor/web/orion/textview/keyBinding.js>.

Class Summary
Constructor Attributes | Constructor Name and Description
--- | ---
| orion.textview.KeyBinding(keyCode, mod1, mod2, mod3, mod4) Constructs a new key binding with the given key code and modifiers.

Field Summary
Field Attributes | Field Name and Description
--- | ---
| keyCode The key code.
| mod1 The primary modifier (usually Command on Mac and Control on other platforms).
| mod2 The secondary modifier (usually Shift).
| mod3 The third modifier (usually Alt).
| mod4 The fourth modifier (usually Control on the Mac).

Method Summary
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.textview.KeyBinding(keyCode, mod1, mod2, mod3, mod4)
Constructs a new key binding with the given key code and modifiers.

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).

See:
  orion.textview.TextView#setKeyBinding

Field Detail
{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).
Method Detail
{Boolean} equals(kb)
Returns whether this key binding is the same as the given parameter.

Parameters:
{orion.textview.KeyBinding} 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.

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Oct 21 2011 14:44:13 GMT-0400 (EDT)