
scout.desktop.outline.keystrokes.OutlineNavigateToTopKeyStroke.js Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (c) 2014-2015 BSI Business Systems Integration AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* BSI Business Systems Integration AG - initial API and implementation
******************************************************************************/
scout.OutlineNavigateToTopKeyStroke = function(tree, modifierBitMask) {
scout.OutlineNavigateToTopKeyStroke.parent.call(this, tree, modifierBitMask);
this.which = [scout.keys.HOME];
this.renderingHints.hAlign = scout.hAlign.RIGHT;
this.renderingHints.$drawingArea = function($drawingArea, event) {
return this.field.$title || this.field.$data;
}.bind(this);
};
scout.inherits(scout.OutlineNavigateToTopKeyStroke, scout.AbstractTreeNavigationKeyStroke);
scout.OutlineNavigateToTopKeyStroke.prototype.handle = function(event) {
this.field.navigateToTop();
};
© 2015 - 2025 Weber Informatics LLC | Privacy Policy