ctrlR static method
Creates Ctrl+R binding (commonly used for reveal/toggle modes).
Implementation
static KeyBindings ctrlR({
required void Function() onPress,
String hintLabel = 'Ctrl+R',
String hintDescription = 'reveal',
}) {
return KeyBindings([
KeyBinding.single(
KeyEventType.ctrlR,
(event) {
onPress();
return KeyActionResult.handled;
},
hintLabel: hintLabel,
hintDescription: hintDescription,
),
]);
}