UNPKG

@clayui/shared

Version:
33 lines (32 loc) 861 B
/** * SPDX-FileCopyrightText: © 2020 Liferay, Inc. <https://liferay.com> * SPDX-License-Identifier: BSD-3-Clause */ /** * Key names for comparison with `Event.prototype.key`. * * Note that because React normalizes key names in its synthetic * event system, we don't have to worry about browser-specific * edge cases (such as "Spacebar" instead of " " in IE): * * See: * * - https://github.com/facebook/react/blob/b87aabdfe1/packages/react-dom/src/events/getEventKey.js#L12-L29 * - https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values */ export declare const Keys: { Backspace: string; Del: string; Down: string; End: string; Enter: string; Esc: string; F2: string; Home: string; Left: string; R: string; Right: string; Spacebar: string; Tab: string; Up: string; };