Skip to content

Commit

Permalink
Changed 'key' to 'code'
Browse files Browse the repository at this point in the history
  • Loading branch information
bsekachev committed Nov 17, 2021
1 parent f6154c8 commit 71f2ee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cvat-canvas/src/typescript/canvasView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ export class CanvasViewImpl implements CanvasView, Listener {
};

private onShiftKeyUp = (e: KeyboardEvent): void => {
if (e.key.toLowerCase() === 'shift' && this.activeElement) {
if (e.code.toLowerCase() === 'shift' && this.activeElement) {
this.snapToAngleResize = consts.SNAP_TO_ANGLE_RESIZE_DEFAULT;
if (this.activeElement) {
const shape = this.svgShapes[this.activeElement.clientID];
Expand Down

0 comments on commit 71f2ee2

Please sign in to comment.