Skip to content

Commit

Permalink
✨ Keybinding for new window
Browse files Browse the repository at this point in the history
  • Loading branch information
trickypr committed Dec 10, 2023
1 parent db2188d commit 4c10c3b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/content/browser/components/keybindings/Keybindings.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
/>

<!-- Tabs & Websites --->
<Keybinding
pref="browser.keybinds.newWindow"
on:command={() => window.windowApi.window.new()}
/>
<Keybinding pref="browser.keybinds.newTab" on:command={() => openTab()} />
<Keybinding
pref="browser.keybinds.closeTab"
Expand Down
1 change: 1 addition & 0 deletions src/content/settings/Settings.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
</SubCategory>

<SubCategory title="Tabs & Websites">
<StringPref pref="browser.keybinds.newWindow">New Window</StringPref>
<StringPref pref="browser.keybinds.newTab">New Tab</StringPref>
<StringPref pref="browser.keybinds.closeTab">Close Active Tab</StringPref>
<StringPref pref="browser.keybinds.nextTab">Next tab</StringPref>
Expand Down
1 change: 1 addition & 0 deletions src/prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ pref(
pref('browser.keybinds.toolbox', 'accel+alt+shift+I');
pref('browser.keybinds.chrome.reload', 'accel+alt+shift+R');

pref('browser.keybinds.newWindow', 'accel+N');
pref('browser.keybinds.newTab', 'accel+T');
pref('browser.keybinds.closeTab', 'accel+W');
pref('browser.keybinds.nextTab', 'accel+VK_TAB');
Expand Down

0 comments on commit 4c10c3b

Please sign in to comment.