UNPKG

@progress/kendo-vue-buttons

Version:
30 lines (29 loc) 766 B
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import { Keys as t } from "@progress/kendo-vue-common"; const n = (a, e, r, s) => { if (r) return a; switch (e) { case t.enter: case t.space: case t.esc: return -1; case t.up: case t.left: return Math.max(0, a - 1); case t.down: case t.right: return Math.min(s - 1, a + 1); default: return a; } }; export { n as default };