Skip to content

Commit 886a82f

Browse files
committed
fix: add .dockerignore and Ctrl+X keybinding for delete
1 parent 0173db9 commit 886a82f

File tree

2 files changed

+57
-1
lines changed

2 files changed

+57
-1
lines changed

.dockerignore

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Dependencies
2+
node_modules
3+
**/node_modules
4+
5+
# Build outputs
6+
.next
7+
.turbo
8+
dist
9+
build
10+
*.tsbuildinfo
11+
12+
# Environment files
13+
.env
14+
.env.local
15+
.env.*.local
16+
17+
# Git
18+
.git
19+
.gitignore
20+
21+
# IDE
22+
.vscode
23+
.idea
24+
*.swp
25+
*.swo
26+
27+
# OS
28+
.DS_Store
29+
Thumbs.db
30+
31+
# Logs
32+
*.log
33+
npm-debug.log*
34+
yarn-debug.log*
35+
yarn-error.log*
36+
37+
# Testing
38+
coverage
39+
.nyc_output
40+
41+
# Misc
42+
*.md
43+
!README.md
44+

apps/web/src/stores/keybindings-store.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export const defaultKeybindings: KeybindingConfig = {
2828
"ctrl+z": "undo",
2929
"ctrl+shift+z": "redo",
3030
"ctrl+y": "redo",
31+
"ctrl+x": "delete-selected",
3132
delete: "delete-selected",
3233
backspace: "delete-selected",
3334
};
@@ -164,7 +165,18 @@ export const useKeybindingsStore = create<KeybindingsState>()(
164165
}),
165166
{
166167
name: "opencut-keybindings",
167-
version: 2,
168+
version: 3,
169+
merge: (persistedState: any, currentState: any) => {
170+
// Merge defaults with persisted state to ensure new keybindings are included
171+
return {
172+
...currentState,
173+
...persistedState,
174+
keybindings: {
175+
...defaultKeybindings,
176+
...persistedState?.keybindings,
177+
},
178+
};
179+
},
168180
}
169181
)
170182
);

0 commit comments

Comments
 (0)