PLT-3268 Made keyboard shortcuts open/close account settings and channel switcher (#3635)
* made keyboard shortcuts open/close account settings and channel switcher * made booleans toggle
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
86d496c9b7
Коммит
537d647846
@@ -180,9 +180,7 @@ export default class Navbar extends React.Component {
|
|||||||
showChannelSwitchModal(e) {
|
showChannelSwitchModal(e) {
|
||||||
if (Utils.cmdOrCtrlPressed(e) && e.keyCode === Constants.KeyCodes.K) {
|
if (Utils.cmdOrCtrlPressed(e) && e.keyCode === Constants.KeyCodes.K) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
this.setState({
|
this.setState({showChannelSwitchModal: !this.state.showChannelSwitchModal});
|
||||||
showChannelSwitchModal: true
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ export default class NavbarDropdown extends React.Component {
|
|||||||
openAccountSettings(e) {
|
openAccountSettings(e) {
|
||||||
if (Utils.cmdOrCtrlPressed(e) && e.shiftKey && e.keyCode === Constants.KeyCodes.A) {
|
if (Utils.cmdOrCtrlPressed(e) && e.shiftKey && e.keyCode === Constants.KeyCodes.A) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
this.setState({showUserSettingsModal: true});
|
this.setState({showUserSettingsModal: !this.state.showUserSettingsModal});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user