UNPKG

filepond

Version:

FilePond, where files go to stretch their bits.

35 lines (34 loc) • 624 B
/*! * FilePond v5.0.2 * Copyright (c) 2017-2026 Pqina B.V. * Released under the MIT License * https://filepond.com */ function t(r) { return [" ", "Enter"].includes(r.key); } function n(r) { return r.key === "Escape"; } function o(r) { return r.key === "Tab"; } function i(r) { return r.key.startsWith("Arrow"); } const e = { ArrowUp: "up", ArrowDown: "down", ArrowLeft: "left", ArrowRight: "right" }; function c(r) { return e[r.key]; } export { c as getDirectionFromKeyboardEvent, t as isActivationKeyboardEvent, i as isArrowKeyboardEvent, n as isCancelKeyboardEvent, o as isTabKeyboardEvent };