Skip to content

Commit

Permalink
Ignore Home Button From Configuration when Keyboard is Selected
Browse files Browse the repository at this point in the history
  • Loading branch information
Peyton-McKee committed Apr 2, 2024
1 parent 56fd2cc commit 14550b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions NERODevelopment/src/controllers/configurationcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,9 @@ void ConfigurationController::enterButtonPressed() {
}
}
}

void ConfigurationController::homeButtonPressed() {
if (!this->m_isKeyboardSelected) {
this->m_model->currentPageIndex = -1;
}
}
1 change: 1 addition & 0 deletions NERODevelopment/src/controllers/configurationcontroller.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public slots:
void downButtonPressed() override;
void upButtonPressed() override;
void enterButtonPressed() override;
void homeButtonPressed() override;

private:
int m_selectedConfigurationIndex = 0;
Expand Down

0 comments on commit 14550b0

Please sign in to comment.