[nostalgia/studio] Add BaseEditor::keyStateChanged

This commit is contained in:
Gary Talent 2022-05-17 21:23:49 -05:00
parent eac471b21b
commit 1edd72dc7d
3 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,9 @@ void BaseEditor::paste() {
void BaseEditor::exportFile() {
}
void BaseEditor::keyStateChanged(core::Key, bool) {
}
void BaseEditor::close() {
this->closed.emit(itemName());
}

View File

@ -48,6 +48,8 @@ class NOSTALGIASTUDIO_EXPORT BaseEditor: public Widget {
virtual void exportFile();
virtual void keyStateChanged(core::Key key, bool down);
void close();
/**

View File

@ -93,6 +93,7 @@ void StudioUI::handleKeyEvent(core::Key key, bool down) noexcept {
break;
}
}
m_activeEditor->keyStateChanged(key, down);
}
void StudioUI::draw() noexcept {