Skip to content

Widgets with a flashing cursor should turn them off when not on current screen #3405

Open
@davep

Description

@davep

Using this code:

from textual.app import App, ComposeResult
from textual.widgets import Input

class DoubleCursorApp(App[None]):

    def compose(self) -> ComposeResult:
        yield Input()

if __name__ == "__main__":
    DoubleCursorApp().run()

if you pull up the command palette you end up with two flashing cursors:

Screen.Recording.2023-09-26.at.11.41.36.mov

We should probably have Input (and likely TextArea) not show the visible state of the cursor if the app's current screen isn't the widget's screen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions