Add hotkeys for switching between products in a category

This commit is contained in:
AdenKoperczak 2025-06-08 09:46:17 -04:00
parent 4306bb09ae
commit 36b2e77ecf
No known key found for this signature in database
GPG key ID: 9843017036F62EE7
6 changed files with 80 additions and 3 deletions

View file

@ -25,6 +25,12 @@ static const std::unordered_map<types::Hotkey, QKeySequence> kDefaultHotkeys_ {
{types::Hotkey::MapRotateCounterclockwise, QKeySequence {Qt::Key::Key_Q}},
{types::Hotkey::MapZoomIn, QKeySequence {Qt::Key::Key_Equal}},
{types::Hotkey::MapZoomOut, QKeySequence {Qt::Key::Key_Minus}},
{types::Hotkey::ProductCategoryNext,
QKeySequence {QKeyCombination {Qt::KeyboardModifier::ControlModifier,
Qt::Key::Key_BracketRight}}},
{types::Hotkey::ProductCategoryPrevious,
QKeySequence {QKeyCombination {Qt::KeyboardModifier::ControlModifier,
Qt::Key::Key_BracketLeft}}},
{types::Hotkey::ProductTiltDecrease,
QKeySequence {Qt::Key::Key_BracketLeft}},
{types::Hotkey::ProductTiltIncrease,