白石誠 5 лет назад
Родитель
Сommit
2397dace6d

+ 5 - 1
src/client/js/components/MirrorMode/MirrorMode.jsx

@@ -14,7 +14,11 @@ export default class MirrorMode extends React.Component {
   // when this is called it returns the hotkey stroke
   // when this is called it returns the hotkey stroke
   static getHotkeyStroke() {
   static getHotkeyStroke() {
     return {
     return {
-      stroke: ['x', 'x', 'b', 'b', 'a', 'y', 'a', 'y', 'ArrowDown', 'ArrowLeft'], ctrlKey: false, metaKey: false, altKey: false, shiftKey: false,
+      stroke: ['x', 'x', 'b', 'b', 'a', 'y', 'a', 'y', 'ArrowDown', 'ArrowLeft'],
+      ctrlKey: false,
+      metaKey: false,
+      altKey: false,
+      shiftKey: false,
     };
     };
   }
   }
 
 

+ 5 - 1
src/client/js/components/PageHotkeys/PageEdit.jsx

@@ -11,7 +11,11 @@ export default class PageEdit extends React.Component {
   // when this is called it returns the hotkey stroke
   // when this is called it returns the hotkey stroke
   static getHotkeyStroke() {
   static getHotkeyStroke() {
     return {
     return {
-      stroke: ['e'], ctrlKey: false, metaKey: false, altKey: false, shiftKey: false,
+      stroke: ['e'],
+      ctrlKey: false,
+      metaKey: false,
+      altKey: false,
+      shiftKey: false,
     };
     };
   }
   }
 
 

+ 5 - 1
src/client/js/components/PageHotkeys/ShowHotkeys.jsx

@@ -11,7 +11,11 @@ export default class ShowHotkeys extends React.Component {
   // when this is called it returns the hotkey stroke
   // when this is called it returns the hotkey stroke
   static getHotkeyStroke() {
   static getHotkeyStroke() {
     return {
     return {
-      stroke: ['/'], ctrlKey: true, metaKey: true, altKey: false, shiftKey: false,
+      stroke: ['/'],
+      ctrlKey: true,
+      metaKey: true,
+      altKey: false,
+      shiftKey: false,
     };
     };
   }
   }