diff --git a/src/components/structures/ScrollPanel.js b/src/components/structures/ScrollPanel.js index dfc6b0f7a1..37cb2977aa 100644 --- a/src/components/structures/ScrollPanel.js +++ b/src/components/structures/ScrollPanel.js @@ -18,7 +18,7 @@ const React = require("react"); const ReactDOM = require("react-dom"); const GeminiScrollbar = require('react-gemini-scrollbar'); import Promise from 'bluebird'; -const KeyCode = require('../../KeyCode'); +import { KeyCode } from '../../Keyboard'; const DEBUG_SCROLL = false; // var DEBUG_SCROLL = true; diff --git a/src/components/structures/TimelinePanel.js b/src/components/structures/TimelinePanel.js index aeb6cce6c3..98f57a60b5 100644 --- a/src/components/structures/TimelinePanel.js +++ b/src/components/structures/TimelinePanel.js @@ -31,7 +31,7 @@ const dis = require("../../dispatcher"); const ObjectUtils = require('../../ObjectUtils'); const Modal = require("../../Modal"); const UserActivity = require("../../UserActivity"); -const KeyCode = require('../../KeyCode'); +import { KeyCode } from '../../Keyboard'; const PAGINATE_SIZE = 20; const INITIAL_SIZE = 20;