netanel

  • Full Screen
  • Wide Screen
  • Narrow Screen
  • Increase font size
  • Default font size
  • Decrease font size

Key & Mouse Bindings
Print

All the command constants (CMD_...) are defined in the Matrix class.

The SWT constants are from the standard SWT library class.

The character codes denote keys and numeric codes denote mouse buttons.

Matrix Bindings

Matrix bindings apply to all zones.

Event TypeKey / Mouse Combination Command

Focus Cell Navigation - keys

SWT.KeyDown SWT.ARROW_UP CMD_FOCUS_UP
SWT.KeyDown SWT.ARROW_DOWN CMD_FOCUS_DOWN
SWT.KeyDown SWT.ARROW_LEFT CMD_FOCUS_LEFT
SWT.KeyDown SWT.ARROW_RIGHT CMD_FOCUS_RIGHT
SWT.KeyDown SWT.PAGE_DOWN CMD_FOCUS_PAGE_DOWN
SWT.KeyDown SWT.PAGE_UP CMD_FOCUS_PAGE_UP
SWT.KeyDown SWT.MOD3 | SWT.PAGE_DOWN CMD_FOCUS_PAGE_RIGHT
SWT.KeyDown SWT.MOD3 | SWT.PAGE_UP CMD_FOCUS_PAGE_LEFT
SWT.KeyDown SWT.HOME CMD_FOCUS_MOST_LEFT
SWT.KeyDown SWT.END CMD_FOCUS_MOST_RIGHT
SWT.KeyDown SWT.MOD1 | SWT.PAGE_UP CMD_FOCUS_MOST_UP
SWT.KeyDown SWT.MOD1 | SWT.PAGE_DOWN CMD_FOCUS_MOST_DOWN
SWT.KeyDown SWT.MOD1 | SWT.HOME CMD_FOCUS_MOST_UP_LEFT
SWT.KeyDown SWT.MOD1 | SWT.END CMD_FOCUS_MOST_DOWN_RIGHT

Focus Cell Navigation - mouse

SWT.MouseDown button 1 CMD_FOCUS_LOCATION
SWT.MouseDown SWT.MOD1 | button 1 CMD_FOCUS_LOCATION_ALTER

Cell Selection - keys

SWT.KeyDown SWT.MOD1 | 'a' CMD_SELECT_ALL
SWT.KeyDown SWT.MOD2 | SWT.ARROW_UP CMD_SELECT_UP
SWT.KeyDown SWT.MOD2 | SWT.ARROW_DOWN CMD_SELECT_DOWN
SWT.KeyDown SWT.MOD2 | SWT.ARROW_LEFT CMD_SELECT_LEFT
SWT.KeyDown SWT.MOD2 | SWT.ARROW_RIGHT CMD_SELECT_RIGHT
SWT.KeyDown SWT.MOD2 | SWT.PAGE_UP CMD_SELECT_PAGE_UP
SWT.KeyDown SWT.MOD2 | SWT.PAGE_DOWN CMD_SELECT_PAGE_DOWN
SWT.KeyDown SWT.MOD2 | SWT.MOD3 | SWT.ARROW_LEFT CMD_SELECT_PAGE_LEFT
SWT.KeyDown SWT.MOD2 | SWT.MOD3 | SWT.ARROW_RIGHT CMD_SELECT_PAGE_RIGHT
SWT.KeyDown SWT.MOD1 | SWT.MOD2 | SWT.PAGE_UP CMD_SELECT_FULL_UP
SWT.KeyDown SWT.MOD1 | SWT.MOD2 | SWT.PAGE_DOWN CMD_SELECT_FULL_DOWN
SWT.KeyDown SWT.MOD2 | SWT.HOME CMD_SELECT_FULL_LEFT
SWT.KeyDown SWT.MOD2 | SWT.END CMD_SELECT_FULL_RIGHT
SWT.KeyDown SWT.MOD1 | SWT.MOD2 | SWT.HOME CMD_SELECT_FULL_UP_LEFT
SWT.KeyDown SWT.MOD1 | SWT.MOD2 | SWT.END CMD_SELECT_FULL_DOWN_RIGHT

Cell Selection - mouse

SWT.MouseDown SWT.MOD2 | button 1 CMD_SELECT_TO_LOCATION
SWT.MouseDown SWT.MOD1 | SWT.MOD2 | button 1 CMD_SELECT_TO_LOCATION_ALTER
SWT.MouseMove SWT.BUTTON1 CMD_SELECT_TO_LOCATION
SWT.MouseMove SWT.MOD1 | SWT.BUTTON1 CMD_SELECT_TO_LOCATION_ALTER

Other

SWT.KeyDown'c'Matrix.CMD_COPY
SWT.KeyDownSWT.MOD3 | SWT.DELMatrix.CMD_ITEM_HIDE
SWT.KeyDownSWT.MOD3 | SWT.INSERTMatrix.CMD_ITEM_SHOW

Row Header Bindings

These bindings apply only to row header zone.

Event TypeKey / Mouse Combination Command
SWT.MouseDownbutton 1Matrix.CMD_SELECT_ROW
SWT.MouseDownSWT.MOD1 | button 1Matrix.CMD_SELECT_ROW_ALTER
SWT.MouseDownSWT.MOD2 | button 1Matrix.CMD_SELECT_TO_ROW
SWT.MouseDownSWT.MOD1 | SWT.MOD2 | button 1Matrix.CMD_SELECT_TO_ROW_ALTER
SWT.MouseMoveSWT.BUTTON1Matrix.CMD_SELECT_TO_ROW
SWT.MouseMoveSWT.MOD1 | SWT.BUTTON1Matrix.CMD_SELECT_TO_ROW_ALTER
SWT.MouseDoubleClickbutton 1Matrix.CMD_RESIZE_PACK

Column Header Bindings

These bindings apply only to column header zone.

Event TypeKey / Mouse Combination Command
SWT.MouseDownbutton 1Matrix.CMD_SELECT_COLUMN
SWT.MouseDownSWT.MOD1 | button 1Matrix.CMD_SELECT_COLUMN_ALTER
SWT.MouseDownSWT.MOD2 | button 1Matrix.CMD_SELECT_TO_COLUMN
SWT.MouseDownSWT.MOD1 | SWT.MOD2 | button 1Matrix.CMD_SELECT_TO_COLUMN_ALTER
SWT.MouseMoveSWT.BUTTON1Matrix.CMD_SELECT_TO_COLUMN
SWT.MouseMoveSWT.MOD1 | SWT.BUTTON1Matrix.CMD_SELECT_TO_COLUMN_ALTER
SWT.MouseDoubleClickbutton 1Matrix.CMD_RESIZE_PACK

Top Left Bindings

These bindings apply only to top left zone.

Event TypeKey / Mouse Combination Command
SWT.MouseDownbutton 1Matrix.CMD_SELECT_ALL

You are here: Tutorial