debian-mirror-gitlab/app/assets/javascripts/lib/utils/keycodes.js
2021-02-22 17:27:13 +05:30

10 lines
357 B
JavaScript

// `e.keyCode` is deprecated, these values should be migrated
// See: https://gitlab.com/gitlab-org/gitlab/-/issues/216102
export const BACKSPACE_KEY_CODE = 8;
export const TAB_KEY_CODE = 9;
export const ENTER_KEY_CODE = 13;
export const ESC_KEY_CODE = 27;
export const UP_KEY_CODE = 38;
export const DOWN_KEY_CODE = 40;
export const DELETE_KEY_CODE = 46;