fix: the PageUp and PageDown key is disabled

This commit is contained in:
dreamsourcelabTAI 2024-06-06 15:03:33 +08:00
parent a641d44e5a
commit 1801609c06

View File

@ -1274,20 +1274,32 @@ namespace pv
break;
case Qt::Key_PageUp:
#ifdef _WIN32
case 33:
#endif
_view->set_scale_offset(_view->scale(),
_view->offset() - _view->get_view_width());
break;
case Qt::Key_PageDown:
#ifdef _WIN32
case 34:
#endif
_view->set_scale_offset(_view->scale(),
_view->offset() + _view->get_view_width());
break;
case Qt::Key_Left:
#ifdef _WIN32
case 37:
#endif
_view->zoom(1);
break;
case Qt::Key_Right:
#ifdef _WIN32
case 39:
#endif
_view->zoom(-1);
break;