Skip to content

Detect when exiting fullscreen is triggered by ESC key press #179

@matcho

Description

@matcho

Hello,

When binding a function to "change" event, through .on() method, how is it possible to detect either :

  • whether this change event was triggered by pressing ESC key
  • whether the browser is entering or exiting fullscreen mode

I couldn't find such information in the event object.

What I'm trying to achieve is to detect when the browser is exiting fullscreen mode because ESC key was pressed.

Thanks for any help, screenfull is great,
Mathias

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