File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed
apps/desktop/src/routes/editor Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 11import { Select as KSelect } from "@kobalte/core/select" ;
2- import { createEventListener } from "@solid-primitives/event-listener" ;
32import { createSignal , Show } from "solid-js" ;
43import Tooltip from "~/components/Tooltip" ;
54import 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 }
Original file line number Diff line number Diff 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 ) =>
You can’t perform that action at this time.
0 commit comments