From 7cef2dfbd524d7e8c41882fb11d8b38b728a79be Mon Sep 17 00:00:00 2001 From: Max Patiiuk Date: Sat, 13 Jul 2024 07:34:19 -0700 Subject: [PATCH] feat(Preferences): begin adding keyboard shortcuts --- .../lib/components/FormSliders/Slider.tsx | 16 +- .../Preferences/KeyboardContext.tsx | 185 ++++++++++++++++++ .../Preferences/KeyboardShortcut.tsx | 172 ++++++++++++++++ .../Preferences/UserDefinitions.tsx | 41 +++- .../frontend/js_src/lib/localization/forms.ts | 46 +++-- .../js_src/lib/localization/preferences.ts | 17 ++ 6 files changed, 453 insertions(+), 24 deletions(-) create mode 100644 specifyweb/frontend/js_src/lib/components/Preferences/KeyboardContext.tsx create mode 100644 specifyweb/frontend/js_src/lib/components/Preferences/KeyboardShortcut.tsx diff --git a/specifyweb/frontend/js_src/lib/components/FormSliders/Slider.tsx b/specifyweb/frontend/js_src/lib/components/FormSliders/Slider.tsx index 6b5d9d90705..07e35ffc6e0 100644 --- a/specifyweb/frontend/js_src/lib/components/FormSliders/Slider.tsx +++ b/specifyweb/frontend/js_src/lib/components/FormSliders/Slider.tsx @@ -29,18 +29,18 @@ export function Slider({ return count > 0 ? (