/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at . */
// @flow
import React from "react";
import type { Node } from "react";
import "./A11yIntention.css";
type Props = {
children?: Node
};
type State = {
keyboard: boolean
};
export default class A11yIntention extends React.Component {
state = { keyboard: false };
handleKeyDown = () => {
this.setState({ keyboard: true });
};
handleMouseDown = () => {
this.setState({ keyboard: false });
};
render() {
return (
{this.props.children}
);
}
}