summaryrefslogtreecommitdiff
path: root/xP
diff options
context:
space:
mode:
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) {