Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::LineEditHistoryShortcuts Struct Reference

Fixed-size owning shortcuts; nullopt disables an individual binding. More...

#include <line_edit.hpp>

Public Attributes

std::optional< EditorChord > undo {EditorChord{InputKey::CHARACTER, U'z', {.control = true}}}
 Default Ctrl+Z.
std::array< std::optional< EditorChord >, LINE_EDIT_REDO_CHORD_COUNT > redo
 Ctrl+Y and Ctrl+Shift+Z.

Detailed Description

Fixed-size owning shortcuts; nullopt disables an individual binding.

Member Data Documentation

◆ redo

std::array<std::optional<EditorChord>, LINE_EDIT_REDO_CHORD_COUNT> portals::LineEditHistoryShortcuts::redo
Initial value:
{
EditorChord{InputKey::CHARACTER, U'y', {.control = true}},
EditorChord{InputKey::CHARACTER, U'z', {.shift = true, .control = true}}}
@ CHARACTER
Character key identified by KeyEvent::scalar; VT uses this for control combinations.
Definition input.hpp:65
Owning exact editor shortcut; only identities surviving router key translation are accepted.
Definition line_edit.hpp:47

Ctrl+Y and Ctrl+Shift+Z.


The documentation for this struct was generated from the following file: