[studio] Add acceptsClipboardPayload to Editor

This commit is contained in:
2024-05-28 20:58:26 -05:00
parent 791d19504e
commit a138f60fea
4 changed files with 14 additions and 2 deletions

View File

@@ -22,4 +22,9 @@ struct StudioContext {
ui(pUi), tctx(pTctx) {}
};
[[nodiscard]]
constexpr keel::Context &keelCtx(StudioContext &ctx) noexcept {
return keelCtx(ctx.tctx);
}
}

View File

@@ -43,6 +43,9 @@ class BaseEditor: public Widget {
virtual void paste();
[[nodiscard]]
virtual bool acceptsClipboardPayload() const noexcept;
virtual void exportFile();
virtual void keyStateChanged(turbine::Key key, bool down);