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>
|
<BrowserRouter>
|
||||||
<div className={`app-shell platform-${platform}`}>
|
<div className={`app-shell platform-${platform}`}>
|
||||||
<TitleBar icon="TagGroup">
|
<TitleBar icon="TagGroup">
|
||||||
<div className="app-hotkeys-menu-icon">
|
<div className="app-shortcuts-menu-icon">
|
||||||
<KeyboardShortcuts />
|
<KeyboardShortcuts />
|
||||||
</div>
|
</div>
|
||||||
<div className="app-help-menu-icon">
|
<div className="app-help-menu-icon">
|
||||||
|
|
|
@ -389,6 +389,7 @@ export const english: IAppStrings = {
|
||||||
keyboardShortcuts: "Keyboard shortcuts",
|
keyboardShortcuts: "Keyboard shortcuts",
|
||||||
otherTips: "Other tips",
|
otherTips: "Other tips",
|
||||||
},
|
},
|
||||||
|
iconTitle: "Keyboard shortcuts and useful tips"
|
||||||
},
|
},
|
||||||
errors: {
|
errors: {
|
||||||
unknown: {
|
unknown: {
|
||||||
|
|
|
@ -392,6 +392,7 @@ export const spanish: IAppStrings = {
|
||||||
keyboardShortcuts: "Atajos de teclado",
|
keyboardShortcuts: "Atajos de teclado",
|
||||||
otherTips: "Otros consejos",
|
otherTips: "Otros consejos",
|
||||||
},
|
},
|
||||||
|
iconTitle: "Atajos de teclado y consejos útiles"
|
||||||
},
|
},
|
||||||
errors: {
|
errors: {
|
||||||
unknown: {
|
unknown: {
|
||||||
|
|
|
@ -385,6 +385,7 @@ export interface IAppStrings {
|
||||||
keyboardShortcuts: string,
|
keyboardShortcuts: string,
|
||||||
otherTips: string,
|
otherTips: string,
|
||||||
},
|
},
|
||||||
|
iconTitle: string;
|
||||||
};
|
};
|
||||||
errors: {
|
errors: {
|
||||||
unknown: IErrorMetadata,
|
unknown: IErrorMetadata,
|
||||||
|
|
|
@ -112,6 +112,7 @@ export const KeyboardShortcuts: React.FC = () => {
|
||||||
iconName="BookAnswers"
|
iconName="BookAnswers"
|
||||||
role="button"
|
role="button"
|
||||||
onClick={() => setShowModal(true)}
|
onClick={() => setShowModal(true)}
|
||||||
|
title={strings.shortcuts.iconTitle}
|
||||||
/>
|
/>
|
||||||
<Modal
|
<Modal
|
||||||
titleAriaId={"Hot Keys Modal"}
|
titleAriaId={"Hot Keys Modal"}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче