summaryrefslogtreecommitdiff
path: root/src/user_interface.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2023-03-13 20:37:45 +1100
committerMaxime Coste <mawww@kakoune.org>2023-03-13 20:37:45 +1100
commitf05ab99d4d7322055f7eb9b9d86b529062885208 (patch)
treed7feff3cf4bef65b5979dbfeec267a22271848a2 /src/user_interface.hh
parent38077ca8265358894fe831dd274f6f6eadbd7455 (diff)
parent1990a764e3d2ffa77931068f876cd49f76bd43f9 (diff)
Merge remote-tracking branch 'krobelus/bracketed-paste'
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;