From aa0eb5bb5b016a9bb1a8d82dafae664f95d6485f Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Wed, 19 Dec 2018 22:40:37 +0100 Subject: [PATCH] adding shortcuts for zooming --- .../lightbox/lightbox.gallery.component.html | 9 +++--- .../lightbox/lightbox.gallery.component.ts | 6 ++++ frontend/translate/messages.en.xlf | 30 +++++++++++++---- frontend/translate/messages.hu.xlf | 32 ++++++++++++++----- 4 files changed, 58 insertions(+), 19 deletions(-) diff --git a/frontend/app/gallery/lightbox/lightbox.gallery.component.html b/frontend/app/gallery/lightbox/lightbox.gallery.component.html index 7798a9b1..03d08c25 100644 --- a/frontend/app/gallery/lightbox/lightbox.gallery.component.html +++ b/frontend/app/gallery/lightbox/lightbox.gallery.component.html @@ -81,14 +81,15 @@
- +
-
- +
diff --git a/frontend/app/gallery/lightbox/lightbox.gallery.component.ts b/frontend/app/gallery/lightbox/lightbox.gallery.component.ts index 8d8b9ff9..4a86d78b 100644 --- a/frontend/app/gallery/lightbox/lightbox.gallery.component.ts +++ b/frontend/app/gallery/lightbox/lightbox.gallery.component.ts @@ -428,6 +428,12 @@ export class GalleryLightboxComponent implements OnDestroy, OnInit { this.fullScreenService.showFullScreen(this.root.nativeElement); } break; + case '-': + this.zoomOut(); + break; + case '+': + this.zoomIn(); + break; case 'c': case 'C': this.controllersAlwaysOn = !this.controllersAlwaysOn; diff --git a/frontend/translate/messages.en.xlf b/frontend/translate/messages.en.xlf index 2279e8b7..7c48e33e 100644 --- a/frontend/translate/messages.en.xlf +++ b/frontend/translate/messages.en.xlf @@ -104,7 +104,7 @@ download app/gallery/lightbox/lightbox.gallery.component.html - 27 + 29 download @@ -112,7 +112,7 @@ info key: i app/gallery/lightbox/lightbox.gallery.component.html - 31 + 33 info key: i @@ -120,11 +120,11 @@ toggle fullscreen, key: f app/gallery/lightbox/lightbox.gallery.component.html - 38 + 40 app/gallery/lightbox/lightbox.gallery.component.html - 47 + 49 app/gallery/map/lightbox/lightbox.map.gallery.component.html @@ -140,7 +140,7 @@ close, key: Escape app/gallery/lightbox/lightbox.gallery.component.html - 54 + 56 app/gallery/map/lightbox/lightbox.map.gallery.component.html @@ -152,7 +152,7 @@ key: left arrow app/gallery/lightbox/lightbox.gallery.component.html - 68 + 74 key: left arrow @@ -160,10 +160,26 @@ key: right arrow app/gallery/lightbox/lightbox.gallery.component.html - 72 + 78 key: right arrow + + Zoom out, key: '-' + + app/gallery/lightbox/lightbox.gallery.component.html + 84 + + Zoom out, key: '-' + + + Zoom in, key: '+' + + app/gallery/lightbox/lightbox.gallery.component.html + 91 + + Zoom in, key: '+' + Search diff --git a/frontend/translate/messages.hu.xlf b/frontend/translate/messages.hu.xlf index 2bf1c6b2..1bd4e7b6 100644 --- a/frontend/translate/messages.hu.xlf +++ b/frontend/translate/messages.hu.xlf @@ -104,7 +104,7 @@ download app/gallery/lightbox/lightbox.gallery.component.html - 27 + 29 letöltés @@ -112,7 +112,7 @@ info key: i app/gallery/lightbox/lightbox.gallery.component.html - 31 + 33 info gyorsgomb: i @@ -120,11 +120,11 @@ toggle fullscreen, key: f app/gallery/lightbox/lightbox.gallery.component.html - 38 + 40 app/gallery/lightbox/lightbox.gallery.component.html - 47 + 49 app/gallery/map/lightbox/lightbox.map.gallery.component.html @@ -140,7 +140,7 @@ close, key: Escape app/gallery/lightbox/lightbox.gallery.component.html - 54 + 56 app/gallery/map/lightbox/lightbox.map.gallery.component.html @@ -152,7 +152,7 @@ key: left arrow app/gallery/lightbox/lightbox.gallery.component.html - 68 + 74 gyorsgomb: balra nyíl @@ -160,10 +160,26 @@ key: right arrow app/gallery/lightbox/lightbox.gallery.component.html - 72 + 78 gyorsgomb: jobbra nyíl + + Zoom out, key: '-' + + app/gallery/lightbox/lightbox.gallery.component.html + 84 + + Kicsinyítés, gyorsgomb: '-' + + + Zoom in, key: '+' + + app/gallery/lightbox/lightbox.gallery.component.html + 91 + + Nagyítás, gyorsgomb: '+' + Search @@ -1852,4 +1868,4 @@ - \ No newline at end of file +