Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function modifiers() {
<div>;
<div> {})} />;
<div>;
<div> console.log(e.keyCode))} />;
<div> console.log(e.keyCode))} />;
<div>;
<div>;
<div>;
<div>;
<div> console.log(e.keyCode))} />;
<div>;
<div> console.log(e.keyCode))} />;
// each modifiers can be specified only once
<div>; //// TS2339: 'prevent' does not exist
<div>; //// TS2339: 'left' does not exist
<div>; //// TS2339: 'left' does not exist
<div>; //// TS2339: 'enter' does not exist
// key modifier can be specified only once
<div>; //// TS2339: 'esc' does not exist
<div>; //// TS2339: 'keys' does not exist
<div>; //// TS2339: 'enter' does not exist
// mouse button modifier can be specified only once</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<div>;
<div>;
<div> console.log(e.keyCode))} />;
<div>;
<div> console.log(e.keyCode))} />;
// each modifiers can be specified only once
<div>; //// TS2339: 'prevent' does not exist
<div>; //// TS2339: 'left' does not exist
<div>; //// TS2339: 'left' does not exist
<div>; //// TS2339: 'enter' does not exist
// key modifier can be specified only once
<div>; //// TS2339: 'esc' does not exist
<div>; //// TS2339: 'keys' does not exist
<div>; //// TS2339: 'enter' does not exist
// mouse button modifier can be specified only once
<div>; //// TS2339: 'right' does not exist
<div>; //// TS2339: 'left' does not exist
// key modifier and mouse button modifier can't be specified together
<div>; //// TS2339: 'middle' does not exist
<div>; //// TS2339: 'enter' does not exist
// xxx and noxxx can't be specified together
<div>; //// TS2339: 'noctrl' does not exist
<div>; //// TS2339: 'ctrl' does not exist
<div>; //// TS2339: 'noshift' does not exist
<div>; //// TS2339: 'shift' does not exist
<div>; //// TS2339: 'noalt' does not exist
<div>; //// TS2339: 'alt' does not exist</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
function modifiers() {
<div>;
<div> {})} />;
<div>;
<div> console.log(e.keyCode))} />;
<div> console.log(e.keyCode))} />;
<div>;
<div>;
<div>;
<div>;
<div> console.log(e.keyCode))} />;
<div>;
<div> console.log(e.keyCode))} />;
// each modifiers can be specified only once
<div>; //// TS2339: 'prevent' does not exist
<div>; //// TS2339: 'left' does not exist
<div>; //// TS2339: 'left' does not exist
<div>; //// TS2339: 'enter' does not exist
// key modifier can be specified only once
<div>; //// TS2339: 'esc' does not exist
<div>; //// TS2339: 'keys' does not exist
<div>; //// TS2339: 'enter' does not exist
// mouse button modifier can be specified only once
<div>; //// TS2339: 'right' does not exist</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
render(): VNode {
return (
<div> spy(keyNames[e.keyCode]))}
/>
);
}
});</div>