MCPcopy Create free account
hub / github.com/daisy/MathCAT / choose_param

Function choose_param

src/navigate.rs:610–627  ·  view source on GitHub ↗
(
	shift_key: bool,
	control_key: bool,
	none: NavigationParam,
	shift: NavigationParam,
	control: NavigationParam,
	shift_control: NavigationParam
)

Source from the content-addressed store, hash-verified

608}
609
610fn choose_param(
611 shift_key: bool,
612 control_key: bool,
613 none: NavigationParam,
614 shift: NavigationParam,
615 control: NavigationParam,
616 shift_control: NavigationParam
617) -> NavigationParam {
618 if shift_key && control_key {
619 return shift_control;
620 } else if control_key {
621 return control;
622 } else if shift_key {
623 return shift;
624 } else {
625 return none;
626 }
627}
628
629fn key_press_to_command_and_param(
630 key: usize,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected