From d5153fe354dce4bc9aef990614dad29d9804aa9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Fri, 16 Sep 2022 02:46:03 +0200 Subject: xC/xP: implement M-H in the web frontend --- xP/public/xP.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'xP') 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) { -- cgit v1.2.3