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.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content/index.js b/src/content/index.js
index e77bb0a..514f964 100644
--- a/src/content/index.js
+++ b/src/content/index.js
@@ -11,9 +11,9 @@ const invokeEvent = (type) => {
}
}
-window.addEventListener("keypress", (e) => {
+window.addEventListener("keydown", (e) => {
browser.runtime.sendMessage({
- key: e.which || e.keyCode,
+ code: e.keyCode,
shift: e.shift,
alt: e.alt,
meta: e.meta,