UNPKG

1.16 kBJavaScriptView Raw
1import {createEventHandler as $93925083ecbb358c$export$48d1ea6320830260} from "./createEventHandler.mjs";
2
3/*
4 * Copyright 2020 Adobe. All rights reserved.
5 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License. You may obtain a copy
7 * of the License at http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software distributed under
10 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
11 * OF ANY KIND, either express or implied. See the License for the specific language
12 * governing permissions and limitations under the License.
13 */
14function $46d819fcbaf35654$export$8f71654801c2f7cd(props) {
15 return {
16 keyboardProps: props.isDisabled ? {} : {
17 onKeyDown: (0, $93925083ecbb358c$export$48d1ea6320830260)(props.onKeyDown),
18 onKeyUp: (0, $93925083ecbb358c$export$48d1ea6320830260)(props.onKeyUp)
19 }
20 };
21}
22
23
24export {$46d819fcbaf35654$export$8f71654801c2f7cd as useKeyboard};
25//# sourceMappingURL=useKeyboard.module.js.map