summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-01-24 23:57:36 +0000
committerMaxime Coste <mawww@kakoune.org>2017-01-24 23:57:36 +0000
commitebcfba12f642fc966b88541af2b518f490cf5b87 (patch)
tree2546e36d0da20d941626bb9e7610da7aef0ee917 /src
parent8a62ec12af3508b6a911aef7ae68cf9e5921e480 (diff)
Add a `RawKey` hook for raw user input hooking
Fixes #1132
Diffstat (limited to 'src')
-rw-r--r--src/client.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client.cc b/src/client.cc
index 4d0547ec..638c230c 100644
--- a/src/client.cc
+++ b/src/client.cc
@@ -85,6 +85,8 @@ bool Client::process_pending_inputs()
}
else
m_input_handler.handle_key(key);
+
+ context().hooks().run_hook("RawKey", key_to_str(key), context());
}
catch (Kakoune::runtime_error& error)
{