Skip to content

escape button event doesn't works in fullscreen mode of the browser. #26

Description

@ampsteric

made the following function to detect pressing of escape button when in fullscreen mode.

import KeyboardEventHandler from "react-keyboard-event-handler";
import React from "react";
const handleKeyboard = (key, e) => {
e.preventDefault();
if (key === "esc") {
console.log("esc");
}
};
const ComponentA = (props) => (


<KeyboardEventHandler
handleKeys={["all"]}
onKeyEvent={handleKeyboard}
/>

);

export default ComponentA;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions