remove zoom in/out shortcuts

https://github.com/ankitects/anki/pull/1668#issuecomment-1044058021
This commit is contained in:
Damien Elmes 2022-02-22 23:12:21 +10:00
parent a4d61fe7d9
commit 256421ca3e
2 changed files with 0 additions and 4 deletions

View File

@ -195,12 +195,10 @@ class Browser(QMainWindow):
f.actionZoomIn.triggered,
lambda: self.editor.web.setZoomFactor(self.editor.web.zoomFactor() + 0.1),
)
f.actionZoomIn.setShortcut(QKeySequence.StandardKey.ZoomIn)
qconnect(
f.actionZoomOut.triggered,
lambda: self.editor.web.setZoomFactor(self.editor.web.zoomFactor() - 0.1),
)
f.actionZoomOut.setShortcut(QKeySequence.StandardKey.ZoomOut)
qconnect(
f.actionResetZoom.triggered,
lambda: self.editor.web.setZoomFactor(1),

View File

@ -1301,12 +1301,10 @@ title="{}" {}>{}</button>""".format(
m.actionZoomIn.triggered,
lambda: self.web.setZoomFactor(self.web.zoomFactor() + 0.1),
)
m.actionZoomIn.setShortcut(QKeySequence.StandardKey.ZoomIn)
qconnect(
m.actionZoomOut.triggered,
lambda: self.web.setZoomFactor(self.web.zoomFactor() - 0.1),
)
m.actionZoomOut.setShortcut(QKeySequence.StandardKey.ZoomOut)
qconnect(m.actionResetZoom.triggered, lambda: self.web.setZoomFactor(1))
# app-wide shortcut
qconnect(m.actionFullScreen.triggered, self.on_toggle_full_screen)