diff --git a/NERODevelopment/src/controllers/configurationcontroller.cpp b/NERODevelopment/src/controllers/configurationcontroller.cpp index 11ba17f..808c9e8 100644 --- a/NERODevelopment/src/controllers/configurationcontroller.cpp +++ b/NERODevelopment/src/controllers/configurationcontroller.cpp @@ -64,3 +64,9 @@ void ConfigurationController::enterButtonPressed() { } } } + +void ConfigurationController::homeButtonPressed() { + if (!this->m_isKeyboardSelected) { + this->m_model->currentPageIndex = -1; + } +} diff --git a/NERODevelopment/src/controllers/configurationcontroller.h b/NERODevelopment/src/controllers/configurationcontroller.h index 61f8103..dac70a8 100644 --- a/NERODevelopment/src/controllers/configurationcontroller.h +++ b/NERODevelopment/src/controllers/configurationcontroller.h @@ -30,6 +30,7 @@ public slots: void downButtonPressed() override; void upButtonPressed() override; void enterButtonPressed() override; + void homeButtonPressed() override; private: int m_selectedConfigurationIndex = 0;