mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-27 03:22:15 +03:00
Fix zoom shortcuts on Linux
This commit is contained in:
parent
644359b821
commit
a19939ea39
@ -32,11 +32,12 @@
|
||||
events.on('goto', (path: string) => goto(path)),
|
||||
events.on('openSendIssueModal', () => shareIssueModal?.show()),
|
||||
|
||||
// Zoom using cmd +, - and =
|
||||
hotkeys.on('Meta+Equal', () => (zoom = Math.min(zoom + 0.0625, 3))),
|
||||
hotkeys.on('Meta+Minus', () => (zoom = Math.max(zoom - 0.0625, 0.375))),
|
||||
hotkeys.on('Meta+Digit0', () => (zoom = 1)),
|
||||
hotkeys.on('Meta+T', () => {
|
||||
// Zoom keys using cmd/ctrl depending on platform
|
||||
hotkeys.on('$mod+Equal', () => (zoom = Math.min(zoom + 0.0625, 3))),
|
||||
hotkeys.on('$mod+Minus', () => (zoom = Math.max(zoom - 0.0625, 0.375))),
|
||||
hotkeys.on('$mod+Digit0', () => (zoom = 1)),
|
||||
|
||||
hotkeys.on('$mod+T', () => {
|
||||
userSettings.update((s) => ({
|
||||
...s,
|
||||
theme: $userSettings.theme == 'light' ? 'dark' : 'light'
|
||||
|
Loading…
Reference in New Issue
Block a user