1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-06 07:32:51 +02:00

Simplified zoom key bindings

Closes #99
This commit is contained in:
2018-05-09 18:18:58 +02:00
parent dfb48d17bf
commit bd6c6ef344
2 changed files with 4 additions and 6 deletions

View File

@ -473,9 +473,9 @@ void MapView::keyPressEvent(QKeyEvent *event)
QPoint pos = viewport()->rect().center();
if (event->matches(ZOOM_IN))
if (event->key() == ZOOM_IN)
z = 1;
else if (event->matches(ZOOM_OUT))
else if (event->key() == ZOOM_OUT)
z = -1;
else if (_digitalZoom && event->key() == Qt::Key_Escape) {
digitalZoom(0);