[nostalgia/studio] Add BaseEditor::keyStateChanged
This commit is contained in:
parent
eac471b21b
commit
1edd72dc7d
@ -24,6 +24,9 @@ void BaseEditor::paste() {
|
||||
void BaseEditor::exportFile() {
|
||||
}
|
||||
|
||||
void BaseEditor::keyStateChanged(core::Key, bool) {
|
||||
}
|
||||
|
||||
void BaseEditor::close() {
|
||||
this->closed.emit(itemName());
|
||||
}
|
||||
|
@ -48,6 +48,8 @@ class NOSTALGIASTUDIO_EXPORT BaseEditor: public Widget {
|
||||
|
||||
virtual void exportFile();
|
||||
|
||||
virtual void keyStateChanged(core::Key key, bool down);
|
||||
|
||||
void close();
|
||||
|
||||
/**
|
||||
|
@ -93,6 +93,7 @@ void StudioUI::handleKeyEvent(core::Key key, bool down) noexcept {
|
||||
break;
|
||||
}
|
||||
}
|
||||
m_activeEditor->keyStateChanged(key, down);
|
||||
}
|
||||
|
||||
void StudioUI::draw() noexcept {
|
||||
|
Loading…
Reference in New Issue
Block a user