From 1c1c4eaf1350913a2894c49aed9bdad4052e3554 Mon Sep 17 00:00:00 2001 From: Peter Sobolewski <76622105+psobolewskiPhD@users.noreply.github.com> Date: Sat, 17 Aug 2024 09:31:42 -0400 Subject: [PATCH] feat: Update _standard_bindings.py to include command/control-0 for original size --- src/app_model/types/_keys/_standard_bindings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app_model/types/_keys/_standard_bindings.py b/src/app_model/types/_keys/_standard_bindings.py index 4894355..2277784 100644 --- a/src/app_model/types/_keys/_standard_bindings.py +++ b/src/app_model/types/_keys/_standard_bindings.py @@ -70,6 +70,7 @@ class StandardKeyBinding(Enum): Underline = auto() Undo = auto() WhatsThis = auto() + OriginalSize = auto() ZoomIn = auto() ZoomOut = auto() @@ -148,6 +149,7 @@ def to_keybinding_rule(self) -> "KeyBindingRule": SK(StandardKeyBinding.Underline, KeyMod.CtrlCmd | KeyCode.KeyU), SK(StandardKeyBinding.Undo, KeyMod.CtrlCmd | KeyCode.KeyZ), SK(StandardKeyBinding.WhatsThis, KeyMod.Shift | KeyCode.F1), + SK(StandardKeyBinding.OriginalSize, KeyMod.CtrlCmd | KeyCode.Digit0), SK(StandardKeyBinding.ZoomIn, KeyMod.CtrlCmd | KeyCode.Equal), SK(StandardKeyBinding.ZoomOut, KeyMod.CtrlCmd | KeyCode.Minus), ]