remove zoom in/out shortcuts
https://github.com/ankitects/anki/pull/1668#issuecomment-1044058021
This commit is contained in:
parent
a4d61fe7d9
commit
256421ca3e
@ -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),
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user