feature: shortcuts icon toolbar (#288)
This commit is contained in:
Родитель
5c1fcaf3e8
Коммит
ea33ea170b
|
@ -79,7 +79,7 @@ export default class App extends React.Component<IAppProps> {
|
|||
<BrowserRouter>
|
||||
<div className={`app-shell platform-${platform}`}>
|
||||
<TitleBar icon="TagGroup">
|
||||
<div className="app-hotkeys-menu-icon">
|
||||
<div className="app-shortcuts-menu-icon">
|
||||
<KeyboardShortcuts />
|
||||
</div>
|
||||
<div className="app-help-menu-icon">
|
||||
|
|
|
@ -389,6 +389,7 @@ export const english: IAppStrings = {
|
|||
keyboardShortcuts: "Keyboard shortcuts",
|
||||
otherTips: "Other tips",
|
||||
},
|
||||
iconTitle: "Keyboard shortcuts and useful tips"
|
||||
},
|
||||
errors: {
|
||||
unknown: {
|
||||
|
|
|
@ -392,6 +392,7 @@ export const spanish: IAppStrings = {
|
|||
keyboardShortcuts: "Atajos de teclado",
|
||||
otherTips: "Otros consejos",
|
||||
},
|
||||
iconTitle: "Atajos de teclado y consejos útiles"
|
||||
},
|
||||
errors: {
|
||||
unknown: {
|
||||
|
|
|
@ -385,6 +385,7 @@ export interface IAppStrings {
|
|||
keyboardShortcuts: string,
|
||||
otherTips: string,
|
||||
},
|
||||
iconTitle: string;
|
||||
};
|
||||
errors: {
|
||||
unknown: IErrorMetadata,
|
||||
|
|
|
@ -112,6 +112,7 @@ export const KeyboardShortcuts: React.FC = () => {
|
|||
iconName="BookAnswers"
|
||||
role="button"
|
||||
onClick={() => setShowModal(true)}
|
||||
title={strings.shortcuts.iconTitle}
|
||||
/>
|
||||
<Modal
|
||||
titleAriaId={"Hot Keys Modal"}
|
||||
|
|
Загрузка…
Ссылка в новой задаче