[PLT-7471] Slight modifications to keyboards dialog (#7325)
* slight modifications to keyboards dialog * Updating shortcuts modal
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
94c9138c19
Коммит
967a0df0f8
@@ -12,8 +12,14 @@ import React from 'react';
|
||||
|
||||
const allShortcuts = defineMessages({
|
||||
mainHeader: {
|
||||
id: 'shortcuts.header',
|
||||
defaultMessage: 'Keyboard Shortcuts'
|
||||
default: {
|
||||
id: 'shortcuts.header',
|
||||
defaultMessage: 'Keyboard Shortcuts\tCtrl|/'
|
||||
},
|
||||
mac: {
|
||||
id: 'shortcuts.header.mac',
|
||||
defaultMessage: 'Keyboard Shortcuts\t⌘|/'
|
||||
}
|
||||
},
|
||||
navHeader: {
|
||||
id: 'shortcuts.nav.header',
|
||||
@@ -103,10 +109,6 @@ const allShortcuts = defineMessages({
|
||||
id: 'shortcuts.msgs.header',
|
||||
defaultMessage: 'Messages'
|
||||
},
|
||||
msgMarkAsRead: {
|
||||
id: 'shortcuts.msgs.mark_as_read',
|
||||
defaultMessage: 'Mark current channel as read:\tEsc'
|
||||
},
|
||||
msgInputHeader: {
|
||||
id: 'shortcuts.msgs.input.header',
|
||||
defaultMessage: 'Works inside an empty input field'
|
||||
@@ -296,7 +298,7 @@ class ShortcutsModal extends React.PureComponent {
|
||||
<div className='shortcuts-content'>
|
||||
<Modal.Header closeButton={true}>
|
||||
<Modal.Title>
|
||||
<strong>{formatMessage(shortcuts.mainHeader)}</strong>
|
||||
<strong>{renderShortcut(formatMessage(shortcuts.mainHeader))}</strong>
|
||||
</Modal.Title>
|
||||
</Modal.Header>
|
||||
<Modal.Body ref='modalBody'>
|
||||
@@ -320,7 +322,6 @@ class ShortcutsModal extends React.PureComponent {
|
||||
<div className='section'>
|
||||
<div>
|
||||
<h4 className='section-title'><strong>{formatMessage(shortcuts.msgHeader)}</strong></h4>
|
||||
{renderShortcut(formatMessage(shortcuts.msgMarkAsRead))}
|
||||
<span><strong>{formatMessage(shortcuts.msgInputHeader)}</strong></span>
|
||||
<div className='subsection'>
|
||||
{renderShortcut(formatMessage(shortcuts.msgEdit))}
|
||||
|
||||
Ссылка в новой задаче
Block a user