summaryrefslogtreecommitdiff
path: root/src/user_interface.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/user_interface.hh')
-rw-r--r--src/user_interface.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/user_interface.hh b/src/user_interface.hh
index 5bab3e89..643f0d1d 100644
--- a/src/user_interface.hh
+++ b/src/user_interface.hh
@@ -43,6 +43,7 @@ enum class CursorMode
};
using OnKeyCallback = std::function<void(Key key)>;
+using OnPasteCallback = std::function<void(StringView content)>;
class UserInterface
{
@@ -78,6 +79,7 @@ public:
virtual void refresh(bool force) = 0;
virtual void set_on_key(OnKeyCallback callback) = 0;
+ virtual void set_on_paste(OnPasteCallback callback) = 0;
using Options = HashMap<String, String, MemoryDomain::Options>;
virtual void set_ui_options(const Options& options) = 0;