Skip to content

Commit 45f53f2

Browse files
committed
fix(desktop): update keyboard shortcuts and CSS for improved functionality
- Added additional key options for scrolling actions and next entry command. - Updated the command hotkey for focusing on the timeline to include Escape. - Modified CSS to prevent overflow on the HTML element. This enhances user experience by providing more flexible keyboard shortcuts and improving layout handling. Signed-off-by: Innei <[email protected]>
1 parent e18f052 commit 45f53f2

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

apps/desktop/layer/renderer/src/constants/shortcuts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@ const shortcutConfigs = {
102102
},
103103
scrollUp: {
104104
name: tShortcuts("keys.entry.scrollUp"),
105-
key: "K",
105+
key: "K, ArrowUp",
106106
},
107107
scrollDown: {
108108
name: tShortcuts("keys.entry.scrollDown"),
109-
key: "J",
109+
key: "J, ArrowDown",
110110
},
111111
nextEntry: {
112112
name: tShortcuts("keys.entries.next"),

apps/desktop/layer/renderer/src/modules/entry-content/index.electron.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ const RegisterCommands = ({
366366
useCommandHotkey({
367367
commandId: COMMAND_ID.layout.focusToTimeline,
368368
when,
369-
shortcut: "Backspace",
369+
shortcut: "Backspace, Escape",
370370
})
371371

372372
const { highlightBoundary } = useFocusActions()

apps/desktop/layer/renderer/src/styles/base.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ html,
22
#shadow-html {
33
--fo-font-family: "SN Pro", system-ui, sans-serif;
44
}
5+
6+
html {
7+
overflow: hidden;
8+
}
59
:root {
610
--sat: env(safe-area-inset-top);
711
--sar: env(safe-area-inset-right);

0 commit comments

Comments
 (0)