From 70e7dd6e3b53509cd2ca6bd393820b90f4caaf2b Mon Sep 17 00:00:00 2001 From: Lipis Date: Thu, 9 Apr 2020 22:58:29 +0300 Subject: [PATCH] Add more shortcuts and minor refactor (#1347) --- src/components/ShortcutsDialog.tsx | 271 +++++++++++++++++------------ src/locales/en.json | 4 +- src/utils.ts | 3 +- 3 files changed, 162 insertions(+), 116 deletions(-) diff --git a/src/components/ShortcutsDialog.tsx b/src/components/ShortcutsDialog.tsx index fa1919a3..dd3651be 100644 --- a/src/components/ShortcutsDialog.tsx +++ b/src/components/ShortcutsDialog.tsx @@ -4,16 +4,37 @@ import { isDarwin } from "../keys"; import { Dialog } from "./Dialog"; import { getShortcutKey } from "../utils"; +const Columns = (props: { children: React.ReactNode }) => ( +
+ {props.children} +
+); + +const Column = (props: { children: React.ReactNode }) => ( +
+ {props.children} +
+); + const ShortcutIsland = (props: { caption: string; children: React.ReactNode; }) => (

void }) => { onCloseRequest={handleClose} title={t("shortcutsDialog.title")} > -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +