Merge pull request #1431 from mitchellh/mouse-mods-alt

core: handle mouse capture events with link highlighting
This commit is contained in:
Mitchell Hashimoto
2024-02-01 09:20:04 -08:00
committed by GitHub
5 changed files with 36 additions and 9 deletions

View File

@@ -36,6 +36,11 @@ pub const Highlight = union(enum) {
/// hovering or always. For always, all links will be highlighted
/// when the mods are pressed regardless of if the mouse is hovering
/// over them.
///
/// Note that if "shift" is specified here, this will NEVER match in
/// TUI programs that capture mouse events. "Shift" with mouse capture
/// escapes the mouse capture but strips the "shift" so it can't be
/// detected.
always_mods: Mods,
hover_mods: Mods,
};