Skip to content

Commit e955799

Browse files
authored
Merge pull request #7526 from processing/cleanup-constants
Clean up modifier key constants
2 parents 063a862 + e9e6524 commit e955799

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/core/constants.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -881,11 +881,11 @@ export const MITER = 'miter';
881881
export const AUTO = 'auto';
882882
// INPUT
883883
/**
884-
* @typedef {'AltLeft' | 'AltRight'} ALT
884+
* @typedef {'Alt'} ALT
885885
* @property {ALT} ALT
886886
* @final
887887
*/
888-
export const ALT = 'AltLeft';
888+
export const ALT = 'Alt';
889889

890890
/**
891891
* @typedef {'Backspace'} BACKSPACE
@@ -895,11 +895,11 @@ export const ALT = 'AltLeft';
895895
export const BACKSPACE = 'Backspace';
896896

897897
/**
898-
* @typedef {'ControlLeft' | 'ControlRight'} CONTROL
898+
* @typedef {'Control' | 'Control'} CONTROL
899899
* @property {CONTROL} CONTROL
900900
* @final
901901
*/
902-
export const CONTROL = 'ControlLeft';
902+
export const CONTROL = 'Control';
903903

904904
/**
905905
* @typedef {'Delete'} DELETE
@@ -937,11 +937,11 @@ export const ESCAPE = 'Escape';
937937
export const LEFT_ARROW = 'ArrowLeft';
938938

939939
/**
940-
* @typedef {'AltLeft' | 'AltRight'} OPTION
940+
* @typedef {'Alt'} OPTION
941941
* @property {OPTION} OPTION
942942
* @final
943943
*/
944-
export const OPTION = 'AltLeft';
944+
export const OPTION = 'Alt';
945945

946946
/**
947947
* @typedef {'Enter'} RETURN
@@ -958,11 +958,11 @@ export const RETURN = 'Enter';
958958
export const RIGHT_ARROW = 'ArrowRight';
959959

960960
/**
961-
* @typedef {'ShiftLeft' | 'ShiftRight'} SHIFT
961+
* @typedef {'Shift'} SHIFT
962962
* @property {SHIFT} SHIFT
963963
* @final
964964
*/
965-
export const SHIFT = 'ShiftLeft';
965+
export const SHIFT = 'Shift';
966966

967967
/**
968968
* @typedef {'Tab'} TAB

0 commit comments

Comments
 (0)