Skip to main content

default_keymap

Function default_keymap 

Source
pub fn default_keymap() -> Keymap<Action>
Available on crate feature json-viewer only.
Expand description

The default viewer shortcuts:

Enter does what a double click does, as in the tree, where it activates a node: here it opens or closes an object or array. Space is left free, since the viewer has nothing to select, and Shift+Arrow is left alone, as other views extend a selection with it. While the search box has focus, Enter and F3 step to the next match and Shift+Enter and Shift+F3 to the previous one, Mod+F selects its text, and Escape clears it, then a second Escape leaves it. The viewer resolves these itself, only while it has focus, so they never clash with other components. Pass a changed keymap with JsonViewer::keymap.