1 | var $951fbcbbca8db6ce$exports = require("./createEventHandler.main.js");
|
2 |
|
3 |
|
4 | function $parcel$export(e, n, v, s) {
|
5 | Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
6 | }
|
7 |
|
8 | $parcel$export(module.exports, "useKeyboard", () => $892d64db2a3c53b0$export$8f71654801c2f7cd);
|
9 | /*
|
10 | * Copyright 2020 Adobe. All rights reserved.
|
11 | * This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
12 | * you may not use this file except in compliance with the License. You may obtain a copy
|
13 | * of the License at http://www.apache.org/licenses/LICENSE-2.0
|
14 | *
|
15 | * Unless required by applicable law or agreed to in writing, software distributed under
|
16 | * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
17 | * OF ANY KIND, either express or implied. See the License for the specific language
|
18 | * governing permissions and limitations under the License.
|
19 | */
|
20 | function $892d64db2a3c53b0$export$8f71654801c2f7cd(props) {
|
21 | return {
|
22 | keyboardProps: props.isDisabled ? {} : {
|
23 | onKeyDown: (0, $951fbcbbca8db6ce$exports.createEventHandler)(props.onKeyDown),
|
24 | onKeyUp: (0, $951fbcbbca8db6ce$exports.createEventHandler)(props.onKeyUp)
|
25 | }
|
26 | };
|
27 | }
|
28 |
|
29 |
|
30 | //# sourceMappingURL=useKeyboard.main.js.map
|