Search in sources :

Example 1 with MoveToFirstColumnAction

use of org.eclipse.nebula.widgets.nattable.selection.action.MoveToFirstColumnAction in project nebula.widgets.nattable by eclipse.

the class DefaultSelectionBindings method configureMoveLeftBindings.

protected void configureMoveLeftBindings(UiBindingRegistry uiBindingRegistry, IKeyAction action) {
    uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.NONE, SWT.ARROW_LEFT), action);
    uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.MOD2, SWT.ARROW_LEFT), action);
    uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.MOD1, SWT.ARROW_LEFT), new MoveToFirstColumnAction());
    uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.MOD2 | SWT.MOD1, SWT.ARROW_LEFT), new MoveToFirstColumnAction());
    uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.MOD2, SWT.TAB), new MoveSelectionAction(MoveDirectionEnum.LEFT, false, false));
    uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.MOD2 | SWT.MOD1, SWT.TAB), action);
}
Also used : MoveToFirstColumnAction(org.eclipse.nebula.widgets.nattable.selection.action.MoveToFirstColumnAction) KeyEventMatcher(org.eclipse.nebula.widgets.nattable.ui.matcher.KeyEventMatcher) MoveSelectionAction(org.eclipse.nebula.widgets.nattable.selection.action.MoveSelectionAction)

Aggregations

MoveSelectionAction (org.eclipse.nebula.widgets.nattable.selection.action.MoveSelectionAction)1 MoveToFirstColumnAction (org.eclipse.nebula.widgets.nattable.selection.action.MoveToFirstColumnAction)1 KeyEventMatcher (org.eclipse.nebula.widgets.nattable.ui.matcher.KeyEventMatcher)1