Skip to content

Commit ed2b611

Browse files
committed
fix duplicate shortcut
1 parent afb7e0f commit ed2b611

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

apps/desktop/src/routes/editor/AspectRatioSelect.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Select as KSelect } from "@kobalte/core/select";
2-
import { createEventListener } from "@solid-primitives/event-listener";
32
import { createSignal, Show } from "solid-js";
43
import Tooltip from "~/components/Tooltip";
54
import type { AspectRatio } from "~/utils/tauri";
@@ -17,15 +16,9 @@ function AspectRatioSelect() {
1716
const { project, setProject } = useEditorContext();
1817
const [open, setOpen] = createSignal(false);
1918
let triggerSelect: HTMLDivElement | undefined;
20-
createEventListener(document, "keydown", (e: KeyboardEvent) => {
21-
if (e.code === "KeyA" && e.target === document.body) {
22-
e.preventDefault();
23-
setOpen((prev) => !prev);
24-
}
25-
});
2619

2720
return (
28-
<Tooltip kbd={["A"]} content="Aspect Ratio">
21+
<Tooltip content="Aspect Ratio">
2922
<KSelect<AspectRatio | "auto">
3023
open={open()}
3124
onOpenChange={setOpen}

apps/desktop/src/routes/editor/Player.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ export function Player() {
174174
editorState.playbackTime,
175175
),
176176
},
177-
{ combo: "C", handler: () => cropDialogHandler() },
178177
{
179178
combo: "Space",
180179
handler: async () => {
@@ -198,7 +197,6 @@ export function Player() {
198197
<AspectRatioSelect />
199198
<EditorButton
200199
tooltipText="Crop Video"
201-
kbd={["C"]}
202200
onClick={() => cropDialogHandler()}
203201
leftIcon={<IconCapCrop class="w-5 text-gray-12" />}
204202
>
@@ -258,7 +256,7 @@ export function Player() {
258256
<div class="flex flex-row flex-1 gap-4 justify-end items-center">
259257
<div class="flex-1" />
260258
<EditorButton<typeof KToggleButton>
261-
tooltipText="Split"
259+
tooltipText="Toggle Split"
262260
kbd={["S"]}
263261
pressed={editorState.timeline.interactMode === "split"}
264262
onChange={(v: boolean) =>

0 commit comments

Comments
 (0)