scrollShortcutOverrides top-level property Null safety

Map<LogicalKeySet, Intent> scrollShortcutOverrides
final

A map used to disable scrolling shortcuts in text fields.

This is a temporary fix for: https://github.com/flutter/flutter/issues/74191

Implementation

final Map<LogicalKeySet, Intent> scrollShortcutOverrides = <LogicalKeySet, Intent>{
  LogicalKeySet(LogicalKeyboardKey.space): DoNothingAndStopPropagationIntent(),
  LogicalKeySet(LogicalKeyboardKey.arrowUp): DoNothingAndStopPropagationIntent(),
  LogicalKeySet(LogicalKeyboardKey.arrowDown): DoNothingAndStopPropagationIntent(),
  LogicalKeySet(LogicalKeyboardKey.arrowLeft): DoNothingAndStopPropagationIntent(),
  LogicalKeySet(LogicalKeyboardKey.arrowRight): DoNothingAndStopPropagationIntent(),
};