aboutsummaryrefslogtreecommitdiff
path: root/src/content/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/index.js')
-rw-r--r--src/content/index.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/content/index.js b/src/content/index.js
index 0fa0720..fceed4b 100644
--- a/src/content/index.js
+++ b/src/content/index.js
@@ -1,9 +1,12 @@
window.addEventListener("keypress", (e) => {
browser.runtime.sendMessage({
- which: e.which || e.keyCode,
- }).then((msg) => {
- console.log(`Message from the background script: ${msg.response}`);
+ key: e.which || e.keyCode,
+ shift: e.shift,
+ alt: e.alt,
+ meta: e.meta,
+ ctrl: e.ctrl,
+ }).then(() => {
}, (err) => {
- console.log(`Error: ${err}`);
+ console.log(`Vim Vixen: ${err}`);
});
});