Skip to content

Commit aa435a0

Browse files
committed
chore(core): disable keyboard shortcuts until finished
1 parent 07ecb87 commit aa435a0

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

src/client/app.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ if (document.getElementById('globals')) {
6161
<SingletonHooksContainer />
6262
<SessionLoader />
6363
<SocketGlobal />
64-
<HotKeysGlobal />
64+
{/*<HotKeysGlobal />*/}
6565

6666
<ChatDock />
6767
<BackupRestoreOverlay />

src/client/containers/Topbar/profileDropdown.jsx

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class ProfileDropdownPartial extends React.Component {
5858
id={'profile-drop'}
5959
className={'profile-drop'}
6060
showTitlebar={false}
61-
minHeight={255}
61+
minHeight={185} // 255 with keyboard shortcuts
6262
minWidth={350}
6363
topOffset={-5}
6464
leftOffset={-70}
@@ -83,27 +83,27 @@ class ProfileDropdownPartial extends React.Component {
8383
</div>
8484
</div>
8585
</div>
86-
<Spacer showBorder={true} borderSize={1} top={0} bottom={0} />
87-
<div className={'user-action-items'}>
88-
<EnableSwitch
89-
label={'Keyboard Shortcuts'}
90-
sublabel={
91-
<>
92-
{this.keyboardShortcutsChecked && (
93-
<div className={'sub-label'}>
94-
Press <code>?</code> to view{' '}
95-
<a href='#' className={'no-ajaxy'}>
96-
Shortcuts
97-
</a>
98-
</div>
99-
)}
100-
</>
101-
}
102-
stateName={'keyboard-shortcuts-enable-switch'}
103-
checked={this.keyboardShortcutsChecked}
104-
onChange={e => this.onKeyboardShortcutsChanged(e)}
105-
/>
106-
</div>
86+
{/*<Spacer showBorder={true} borderSize={1} top={0} bottom={0} />*/}
87+
{/*<div className={'user-action-items'}>*/}
88+
{/* <EnableSwitch*/}
89+
{/* label={'Keyboard Shortcuts'}*/}
90+
{/* sublabel={*/}
91+
{/* <>*/}
92+
{/* {this.keyboardShortcutsChecked && (*/}
93+
{/* <div className={'sub-label'}>*/}
94+
{/* Press <code>?</code> to view{' '}*/}
95+
{/* <a href='#' className={'no-ajaxy'}>*/}
96+
{/* Shortcuts*/}
97+
{/* </a>*/}
98+
{/* </div>*/}
99+
{/* )}*/}
100+
{/* </>*/}
101+
{/* }*/}
102+
{/* stateName={'keyboard-shortcuts-enable-switch'}*/}
103+
{/* checked={this.keyboardShortcutsChecked}*/}
104+
{/* onChange={e => this.onKeyboardShortcutsChanged(e)}*/}
105+
{/* />*/}
106+
{/*</div>*/}
107107
<Spacer showBorder={true} borderSize={1} top={0} bottom={0} />
108108
{/*<div className={'profile-drop-dark-section'}></div>*/}
109109
{/*<Spacer showBorder={true} borderSize={1} top={0} bottom={0} />*/}

0 commit comments

Comments
 (0)