Bunlong Heng
|
1862dfba11
|
fix: assign MouseButton11 = uv.MouseButton11 (#1754)
|
2026-08-10 13:58:29 +04:00 |
|
Ayman Bagabas
|
efd37e6e54
|
chore: update to use ultraviolet repository name
|
2025-06-30 11:05:36 -04:00 |
|
Ayman Bagabas
|
31fb5031cc
|
feat: update to use uv package
|
2025-05-30 17:44:58 -04:00 |
|
Ayman Bagabas
|
9eb2867725
|
refactor: use tv package for input events
|
2025-05-19 13:23:44 -04:00 |
|
Ayman Bagabas
|
2df9ed00e3
|
refactor: use x/input for input events
This moves the existing input event handling to the x/input package. All
input events are translated to tea messages in
`tea.translateInputEvent`.
|
2024-12-12 10:51:58 -05:00 |
|
Ayman Bagabas
|
7fbf91fb50
|
chore: update ansi and dependencies
|
2024-11-21 14:12:16 -05:00 |
|
Ayman Bagabas
|
a26ecc5e91
|
fix: implement String() method for MouseButton type
|
2024-09-16 15:54:35 -04:00 |
|
Ayman Bagabas
|
2f14548625
|
docs: add godoc examples
|
2024-08-30 09:37:08 -04:00 |
|
Ayman Bagabas
|
16f706ac13
|
refactor: expose key codes and define key/mouse interfaces
|
2024-08-30 09:37:07 -04:00 |
|
Ayman Bagabas
|
7b87642c87
|
refactor!: use key/mouse msg interfaces
Use key and mouse interfaces to catch their respective types as an
interface.
|
2024-08-30 09:37:07 -04:00 |
|
Ayman Bagabas
|
e0865cfed3
|
refactor: simplify key modifier matching
Use bitmap matching to check if a modifier contains another
|
2024-08-16 16:51:34 -04:00 |
|
Ayman Bagabas
|
13ffcad06c
|
refactor: reimplement the event loop with a sequence parser
Currently, Bubble Tea uses a simple lookup table to detect input events.
Here, we're introducing an actual input sequence parser instead of
simply using a lookup table. This will allow Bubble Tea programs to read
all sorts of input events such Kitty keyboard, background color, mode
report, and all sorts of ANSI sequence input events.
Supersedes: https://github.com/charmbracelet/bubbletea/pull/1079
Supersedes: https://github.com/charmbracelet/bubbletea/issues/1014
Related: https://github.com/charmbracelet/bubbletea/issues/869
Related: https://github.com/charmbracelet/bubbletea/issues/163
Related: https://github.com/charmbracelet/bubbletea/issues/918
Related: https://github.com/charmbracelet/bubbletea/issues/850
Related: https://github.com/charmbracelet/bubbletea/issues/207
|
2024-08-12 17:33:51 -04:00 |
|
Christian Rocha
|
3e129db31a
|
chore(lint): add various nolint directives
|
2024-05-08 12:17:18 -04:00 |
|
Ayman Bagabas
|
a154847611
|
feat: extended Coordinates mouse reporting & additional buttons support (#594)
* feat(mouse): add extended mouse & shift key support
Support SGR(1006) mouse mode
Support parsing shift key press
Support additional mouse buttons
Report which button was released
Report button motion
* fix: key.go sgr len missing calculation (#841)
* chore(test): add sgr mouse msg detect test
---------
Co-authored-by: robinsamuel <96998379+robin-samuel@users.noreply.github.com>
|
2023-12-04 11:50:59 -05:00 |
|
Raphael 'kena' Poss
|
d9c675138c
|
fix(key),test: simplify the input analysis code
|
2023-06-15 14:51:02 +02:00 |
|
Glenn Gonda
|
4880cf2a09
|
docs: fix typos and clean up comments
|
2023-02-19 08:45:22 -05:00 |
|
Christian Muehlhaeuser
|
1e1b5f716d
|
chore: gofmt sources
|
2022-08-15 12:25:55 +02:00 |
|
Christian Muehlhaeuser
|
6301f93cb2
|
Support receiving batched mouse events
Mouse events may trigger more than a single events simultaneously.
Fixes #212.
|
2022-02-13 08:40:04 +01:00 |
|
Christian Rocha
|
c5ed2b4a01
|
Add missing GoDocs
|
2021-09-07 15:37:14 -04:00 |
|
Christian Rocha
|
955ce5c82c
|
Extract magic number in X10 mouse parser
|
2021-05-31 10:43:31 -04:00 |
|
Aleksandr Krivoshchekov
|
02a0509e34
|
Simplify code and add tests for mouse.go (#30)
|
2020-11-07 06:43:12 +01:00 |
|
Christian Rocha
|
a4f26594b2
|
Rename MouseButton type to more accurate MouseEventType
|
2020-09-28 16:42:39 -04:00 |
|
Christian Rocha
|
591fcabdd4
|
Explicitly ignore io.Writer return values in renderer
|
2020-09-28 16:28:40 -04:00 |
|
Christian Rocha
|
8025748828
|
Some comments on mouse stuff
|
2020-07-13 11:26:57 -04:00 |
|
Christian Rocha
|
d6cf9e69b6
|
Fix bug where wheel wasn't being reported if a modifier was pressed
|
2020-06-23 10:34:46 -04:00 |
|
Christian Rocha
|
d86cb562f0
|
Add basic mouse support
|
2020-06-22 20:41:26 -04:00 |
|