xC/xP: implement M-H in the web frontend
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user