diff options
| author | Maxime Coste <mawww@kakoune.org> | 2023-03-13 20:37:45 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2023-03-13 20:37:45 +1100 |
| commit | f05ab99d4d7322055f7eb9b9d86b529062885208 (patch) | |
| tree | d7feff3cf4bef65b5979dbfeec267a22271848a2 /src/user_interface.hh | |
| parent | 38077ca8265358894fe831dd274f6f6eadbd7455 (diff) | |
| parent | 1990a764e3d2ffa77931068f876cd49f76bd43f9 (diff) | |
Merge remote-tracking branch 'krobelus/bracketed-paste'
Diffstat (limited to 'src/user_interface.hh')
| -rw-r--r-- | src/user_interface.hh | 2 |
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; |
