Skip to content

Commit

Permalink
feat: Include command/control-0 for OriginalSize in StandardKeyBindin…
Browse files Browse the repository at this point in the history
…gs (#220)

feat: Update _standard_bindings.py to include command/control-0 for original size
  • Loading branch information
psobolewskiPhD authored Aug 17, 2024
1 parent 4afa6f6 commit b7cd0d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app_model/types/_keys/_standard_bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ class StandardKeyBinding(Enum):
Underline = auto()
Undo = auto()
WhatsThis = auto()
OriginalSize = auto()
ZoomIn = auto()
ZoomOut = auto()

Expand Down Expand Up @@ -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),
]
Expand Down

0 comments on commit b7cd0d5

Please sign in to comment.