From 5f823d703dafcc0a9ed80452e9d5dcf4a00a1219 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Thu, 10 Aug 2017 12:40:44 -0400 Subject: Fix arrow keys when viewing images (#7161) --- webapp/components/view_image.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/components/view_image.jsx b/webapp/components/view_image.jsx index 4350711fc..7872867f3 100644 --- a/webapp/components/view_image.jsx +++ b/webapp/components/view_image.jsx @@ -11,7 +11,8 @@ import * as GlobalActions from 'actions/global_actions.jsx'; import * as FileUtils from 'utils/file_utils'; import * as Utils from 'utils/utils.jsx'; -import {KeyCodes} from 'utils/constants.jsx'; +import Constants from 'utils/constants.jsx'; +const KeyCodes = Constants.KeyCodes; import {getFileUrl, getFilePreviewUrl} from 'mattermost-redux/utils/file_utils'; -- cgit v1.2.3-1-g7c22