Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
No EOL
742 B
Text
22 lines
No EOL
742 B
Text
// Copyright (c) 2020 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
export const ENTER_KEY = 'Enter';
|
|
export const ESCAPE_KEY = 'Escape';
|
|
export const TAB_KEY = 'Tab';
|
|
export const ARROW_KEYS = new Set([
|
|
"ArrowUp" /* ArrowKey.UP */,
|
|
"ArrowDown" /* ArrowKey.DOWN */,
|
|
"ArrowLeft" /* ArrowKey.LEFT */,
|
|
"ArrowRight" /* ArrowKey.RIGHT */,
|
|
]);
|
|
export function keyIsArrowKey(key) {
|
|
return ARROW_KEYS.has(key);
|
|
}
|
|
export function isEscKey(event) {
|
|
return event.key === 'Escape';
|
|
}
|
|
export function isEnterOrSpaceKey(event) {
|
|
return event.key === 'Enter' || event.key === ' ';
|
|
}
|
|
//# sourceMappingURL=KeyboardUtilities.js.map |