Add a TrackMouse(false) on ScreenInteractive to disable mouse events (#726)

When mouse events are enabled, it is not possible to select text in the
terminal and copy it somewhere else. This could be usefull for some
applications if they don't need to handle mouse events.

Add a function on the ScreenInteractive class to disable grabbing of
mouse events so that it is e.g. possible to select text in the user
interface. The function needs to be called on the screen object before
starting the application loop if such a behaviour is desired.
This commit is contained in:
Stefan Ravn van Overeem
2023-08-19 10:57:50 +02:00
committed by GitHub
parent f7304c28c3
commit b3f1edc385
3 changed files with 32 additions and 4 deletions

View File

@@ -26,6 +26,7 @@ current (development)
Component Slider(SliderOption<T> options);
Component ResizableSplit(ResizableSplitOption options);
```
- Feature: Add `ScreenInteractive::TrackMouse(false)` disable mouse support.
### Dom
- Feature: Add `hyperlink` decorator. For instance: