aboutsummaryrefslogtreecommitdiff
path: root/xP
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-09-16 02:46:03 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-09-16 02:52:16 +0200
commitd5153fe354dce4bc9aef990614dad29d9804aa9b (patch)
tree9cf649555d43861a8f17290efc08825d304c8549 /xP
parentee76186bef6f40da41f8cfa89a9c54ae9c9540f4 (diff)
downloadxK-d5153fe354dce4bc9aef990614dad29d9804aa9b.tar.gz
xK-d5153fe354dce4bc9aef990614dad29d9804aa9b.tar.xz
xK-d5153fe354dce4bc9aef990614dad29d9804aa9b.zip
xC/xP: implement M-H in the web frontend
Diffstat (limited to 'xP')
-rw-r--r--xP/public/xP.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/xP/public/xP.js b/xP/public/xP.js
index 1362e22..a5f1218 100644
--- a/xP/public/xP.js
+++ b/xP/public/xP.js
@@ -194,6 +194,10 @@ function bufferActivate(name) {
rpc.send({command: 'BufferActivate', bufferName: name})
}
+function bufferToggleUnimportant(name) {
+ rpc.send({command: 'BufferToggleUnimportant', bufferName: name})
+}
+
function bufferToggleLog() {
if (bufferLog) {
setTimeout(() =>
@@ -860,6 +864,10 @@ document.addEventListener('keydown', event => {
case 'h':
bufferToggleLog()
break
+ case 'H':
+ if (bufferCurrent !== undefined)
+ bufferToggleUnimportant(bufferCurrent)
+ break
case 'a':
for (const name of names.slice(1))
if (buffers.get(name).newMessages) {