Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Commit

Permalink
Merge branch 'release'
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-shatskyi committed Jun 7, 2017
2 parents 9b9c8ab + 9dc8c04 commit f20bbba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export enum KeyCode {
Underscore = 189,
Period = 190,
VerticalBar = 220,
AltGraph = 225,
}

export enum Color {
Expand Down
2 changes: 1 addition & 1 deletion src/views/ViewUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function stopBubblingUp(event: Event): Event {
}

export function isModifierKey(event: KeyboardEvent) {
return [KeyCode.Shift, KeyCode.Ctrl, KeyCode.Meta, KeyCode.Alt].includes(event.keyCode);
return [KeyCode.Shift, KeyCode.Ctrl, KeyCode.Meta, KeyCode.Alt, KeyCode.AltGraph].includes(event.keyCode);
}

export function setCaretPosition(node: Node, position: number) {
Expand Down

0 comments on commit f20bbba

Please sign in to comment.