defaultTextFieldSelectorHandlers top-level constant
Implementation
const defaultTextFieldSelectorHandlers = <String, SuperTextFieldSelectorHandler>{
// Control.
MacOsSelectors.insertTab: _moveFocusNext,
MacOsSelectors.cancelOperation: _giveUpFocus,
// Caret movement.
MacOsSelectors.moveLeft: _moveCaretUpstream,
MacOsSelectors.moveRight: _moveCaretDownstream,
MacOsSelectors.moveUp: _moveCaretUp,
MacOsSelectors.moveDown: _moveCaretDown,
MacOsSelectors.moveForward: _moveCaretDownstream,
MacOsSelectors.moveBackward: _moveCaretUpstream,
MacOsSelectors.moveWordLeft: _moveWordUpstream,
MacOsSelectors.moveWordRight: _moveWordDownstream,
MacOsSelectors.moveToLeftEndOfLine: _moveLineBeginning,
MacOsSelectors.moveToRightEndOfLine: _moveLineEnd,
// Selection expanding.
MacOsSelectors.moveLeftAndModifySelection: _expandSelectionUpstream,
MacOsSelectors.moveRightAndModifySelection: _expandSelectionDownstream,
MacOsSelectors.moveUpAndModifySelection: _expandSelectionLineUp,
MacOsSelectors.moveDownAndModifySelection: _expandSelectionLineDown,
MacOsSelectors.moveWordLeftAndModifySelection: _expandSelectionWordUpstream,
MacOsSelectors.moveWordRightAndModifySelection: _expandSelectionWordDownstream,
MacOsSelectors.moveToLeftEndOfLineAndModifySelection: _expandSelectionLineUpstream,
MacOsSelectors.moveToRightEndOfLineAndModifySelection: _expandSelectionLineDownstream,
// Deletion.
MacOsSelectors.deleteBackward: _deleteUpstream,
MacOsSelectors.deleteForward: _deleteDownstream,
MacOsSelectors.deleteWordBackward: _deleteWordUpstream,
MacOsSelectors.deleteWordForward: _deleteWordDownstream,
MacOsSelectors.deleteToBeginningOfLine: _deleteToBeginningOfLine,
MacOsSelectors.deleteToEndOfLine: _deleteToEndOfLine,
MacOsSelectors.deleteBackwardByDecomposingPreviousCharacter: _deleteUpstream,
// Scrolling.
MacOsSelectors.scrollToBeginningOfDocument: _scrollToBeginningOfDocument,
MacOsSelectors.scrollToEndOfDocument: _scrollToEndOfDocument,
MacOsSelectors.scrollPageUp: _scrollPageUp,
MacOsSelectors.scrollPageDown: _scrollPageDown,
};