Skip to content

Disable ReactReader left/right arrow navigation via state #195

@Hadi87s

Description

@Hadi87s

Hello, hope everyone is good and well,
I want a way to disable the navigation via the left/right keyboard arrow buttons conditionally, but I couldn't find a way to do so.

the case that I have is that I've created a component to act like a chatbot floating above the epub instance, when the chatbot's dialog is open and the user starts typing and clicking at the arrow to navigate between letters the book starts responding as well, thus navigating the user elsewhere of the original position.

I want a way to conditionally disable it for this dialog and turn it back on without the dialog being opened.

if there is a way I can achieve this I'd appreciate it.
Thanks for your amazing work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions