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

Function choose_command

src/navigate.rs:591–608  ·  view source on GitHub ↗
(
	shift_key: bool,
	control_key: bool,
	none: NavigationCommand,
	shift: NavigationCommand,
	control: NavigationCommand,
	shift_control: NavigationCommand
)

Source from the content-addressed store, hash-verified

589
590
591fn choose_command(
592 shift_key: bool,
593 control_key: bool,
594 none: NavigationCommand,
595 shift: NavigationCommand,
596 control: NavigationCommand,
597 shift_control: NavigationCommand
598) -> NavigationCommand {
599 if shift_key && control_key {
600 return shift_control;
601 } else if control_key {
602 return control;
603 } else if shift_key {
604 return shift;
605 } else {
606 return none;
607 }
608}
609
610fn choose_param(
611 shift_key: bool,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected