prompt-toolkit / python-prompt-toolkit

Library for building powerful interactive command line applications in Python
https://python-prompt-toolkit.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
9.11k stars 717 forks source link

Bug: Window margins in Floats are transparent to mouse events. #1736

Open joouha opened 1 year ago

joouha commented 1 year ago

Dear Jonathon,

When a Float contains a Window with a Margin, mouse events on the margin are sent to whatever is below the Float.

This means, for example, that clicking on a margin in a modal dialog can result in interaction with whatever is below the dialog.

I think the solution would be to clear all mouse events in a Float's WritePosition before the float is written to the screen.