textual/docs/events
Darren Burns 3c120c0ab0
Chaining click events (double/triple click etc) (#5369)
* Add comment about Click events

* Remove unused `App._hover_effects_timer`

* Add missing annotation

* Add missing type annotation

* Add `App._click_chain_timer`

* Add support for click chaining (double click, triple click, etc.)

* Create `App.CLICK_CHAIN_TIME_THRESHOLD` for controlling click chain timing

* Some tests for chained clicks

* Test changes [no ci]

* Have Pilot send only MouseUp and MouseDown, and let Textual generate clicks itself [no ci]

* Fix DataTable click tet [no ci]

* Rename Click.count -> Click.chain

* Test fixes

* Enhance raw_click function documentation in test_app.py to clarify its purpose and behavior

* Refactor imports in events.py: remove Self from typing and import from typing_extensions

* Remove unnecessary pause in test_datatable_click_cell_cursor

* Remove debug print statements and unnecessary pause in App class; add on_mount method to LazyApp for better lifecycle management in tests

* Remove debugging prints

* Add support for double and triple clicks in testing guide

* Add a note about double and triple clicks to the docs

* Turn off formatter for a section of code, and make it 3.8 compatible

* Update changelog [no ci]

* Simplify by removing an unecessary variable in `Pilot.click`

* Remove debugging code

* Add target-version py38 to ruff config in pyproject.toml, and remove formatter comments

* Document timing of click chains

* Pilot.double_click and Pilot.triple_click
2024-12-11 16:25:42 +00:00
..
app_blur.md Tidy AppBlur 2024-03-19 15:27:28 +00:00
app_focus.md Tidy AppFocus 2024-03-19 15:29:47 +00:00
blur.md Don't use frontmatter where it isn't necessary 2024-03-19 15:43:27 +00:00
click.md Chaining click events (double/triple click etc) (#5369) 2024-12-11 16:25:42 +00:00
descendant_blur.md Tidy up the docs for the DescendantBlur event 2024-03-20 10:43:03 +00:00
descendant_focus.md Tidy up the docs for the DescendantFocus event 2024-03-20 10:45:34 +00:00
enter.md Add see-also for Leave to Enter 2024-03-20 10:50:03 +00:00
focus.md Tidy up the docs for Focus 2024-03-20 10:51:59 +00:00
hide.md Tidy the docs for the Hide event 2024-03-20 10:54:32 +00:00
index.md Use hamburger menu icon. 2024-09-26 00:44:42 +08:00
key.md Tidy the documentation for the Key event 2024-03-20 10:56:04 +00:00
leave.md Tidy the documentation for the Leave event 2024-03-20 10:57:28 +00:00
load.md Add see-also relating to (un)mounting 2024-03-26 11:17:21 +00:00
mount.md Add see-also relating to (un)mounting 2024-03-26 11:17:21 +00:00
mouse_capture.md event docstrings 2024-03-26 11:34:50 +00:00
mouse_down.md Tidy the documentation for the MouseDown event 2024-03-20 11:07:05 +00:00
mouse_move.md Tidy the documentation for the MouseMove event 2024-03-20 11:14:49 +00:00
mouse_release.md event docstrings 2024-03-26 11:34:50 +00:00
mouse_scroll_down.md Tidy the documentation for the MouseScrollDown event 2024-03-20 11:18:25 +00:00
mouse_scroll_up.md Tidy the documentation for the MouseScrollUp event 2024-03-20 11:20:08 +00:00
mouse_up.md Tidy the documentation for the MouseUp event 2024-03-20 11:21:30 +00:00
paste.md Tidy the documentation for the Paste event 2024-03-20 11:24:41 +00:00
print.md Tidy the documentation for the Print event 2024-03-20 11:35:40 +00:00
resize.md Tidy the documentation for the Resize event 2024-03-20 11:39:46 +00:00
screen_resume.md Link ScreenSuspend and ScreenResume via see-also 2024-05-20 08:11:14 +01:00
screen_suspend.md Link ScreenSuspend and ScreenResume via see-also 2024-05-20 08:11:14 +01:00
show.md Tidy the documentation for the Show event 2024-03-20 13:46:56 +00:00
unmount.md Add see-also relating to (un)mounting 2024-03-26 11:17:21 +00:00