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

Function do_mathml_navigate_key_press

src/navigate.rs:315–319  ·  view source on GitHub ↗

Given a key code along with the modifier keys, the current node is moved accordingly (or value reported in some cases).] The spoken text for the new current node is returned.

(mathml: Element,
            key: usize, shift_key: bool, control_key: bool, alt_key: bool, meta_key: bool)

Source from the content-addressed store, hash-verified

313/// Given a key code along with the modifier keys, the current node is moved accordingly (or value reported in some cases).]
314/// The spoken text for the new current node is returned.
315pub fn do_mathml_navigate_key_press(mathml: Element,
316 key: usize, shift_key: bool, control_key: bool, alt_key: bool, meta_key: bool) -> Result<String> {
317 let (command, param) = key_press_to_command_and_param(key, shift_key, control_key, alt_key, meta_key)?;
318 return do_navigate_command_and_param(mathml, command, param);
319}
320
321fn do_navigate_command_and_param(mathml: Element, command: NavigationCommand, param: NavigationParam) -> Result<String> {
322 return do_navigate_command_string(mathml, navigation_command_string(command, param));

Callers 1

do_navigate_keypressFunction · 0.85

Tested by

no test coverage detected