Skip to content

Commit

Permalink
Resolves #107: menu/accelerator for zoom-to-fit.
Browse files Browse the repository at this point in the history
  • Loading branch information
IonoclastBrigham committed Oct 29, 2019
1 parent 8df16bd commit 01d2aa0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions frame.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,19 @@
(unless (equal? (image-path) +root-path+)
(send (ivy-canvas) zoom-to 1.0)))]))

(define ivy-menu-bar-view-zoom-to-fit
(new menu-item%
[parent ivy-menu-bar-view-zoom]
[label "Fit"]
[help-string "Zoom the image to fit the window"]
[shortcut #\0]
[shortcut-prefix (list (if macosx?
'option
'alt))]
[callback (λ (i e)
(send (ivy-canvas) zoom-to-fit))]))


(void (new separator-menu-item%
[parent ivy-menu-bar-view-zoom]))

Expand Down

0 comments on commit 01d2aa0

Please sign in to comment.