( shift_key: bool, control_key: bool, none: NavigationParam, shift: NavigationParam, control: NavigationParam, shift_control: NavigationParam )
| 608 | } |
| 609 | |
| 610 | fn 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 | |
| 629 | fn key_press_to_command_and_param( |
| 630 | key: usize, |
no outgoing calls
no test coverage detected