@setoelkahfi / svara / commits / 458373c

chore: disabled fullscreen (f11) temporarily

mellbacon committed Aug 13, 2023 at 16:42 UTC 458373cd4c29ef9b418118fed7d4c405523a39cc
3 files changed +3 -2
src/App.svelte
+1 -1
@@ -55,7 +55,7 @@
55 if (panelSize < minPanelSize) {
56 panelSize = minPanelSize;
57 }
58 -}
58 + }
59 </script>
60 <script lang="ts" context="module">
61 const _openPopup = writable(false);
src/config/commands.ts
+1
@@ -115,6 +115,7 @@ export const commands = {
115 },
116 "fullscreen": {
117 "keybind": "F11",
118 + "disabled": "true",
119 "command": async () => {
120 if (await appWindow.isFullscreen()) {
121 appWindow.setFullscreen(false);
src/lib/Header.svelte
+1 -1
@@ -32,7 +32,7 @@
32 {name: "Zoom In", disabled: true, shortcut: commands.zoomIn.keybind, action: commands.zoomIn.command},
33 {name: "Zoom Out", disabled: true, shortcut: commands.zoomOut.keybind, action: commands.zoomOut.command},
34 {name: "Reset Zoom", disabled: true, shortcut: "", action: () => {console.warn("Feature not implemented yet.")}},
35 - {name: "Fullscreen", shortcut: commands.fullscreen.keybind, action: commands.fullscreen.command},
35 + {name: "Fullscreen", disabled: commands.fullscreen.disabled, shortcut: commands.fullscreen.keybind, action: commands.fullscreen.command},
36 ]},
37 {menuname: "Run", children: [
38 {name: "Run File", disabled: true, shortcut: commands.runFile.keybind, action: commands.runFile.command},