debian-mirror-gitlab/app/assets/javascripts/lib/utils/keycodes.js

11 lines
357 B
JavaScript
Raw Normal View History

2020-05-24 23:13:21 +05:30
// `e.keyCode` is deprecated, these values should be migrated
// See: https://gitlab.com/gitlab-org/gitlab/-/issues/216102
2020-04-22 19:07:51 +05:30
export const BACKSPACE_KEY_CODE = 8;
2021-02-22 17:27:13 +05:30
export const TAB_KEY_CODE = 9;
2018-10-15 14:42:47 +05:30
export const ENTER_KEY_CODE = 13;
export const ESC_KEY_CODE = 27;
2020-04-22 19:07:51 +05:30
export const UP_KEY_CODE = 38;
export const DOWN_KEY_CODE = 40;
export const DELETE_KEY_CODE = 46;