diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2023-04-05 23:08:49 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2023-04-05 23:10:41 +0200 |
commit | 6bfe577f1b8ec055d1d903a417ffac152f97751f (patch) | |
tree | 01b1ae3fbc87daa69bf3b7be86758674797c54fe /xP/public/xP.js | |
parent | 10791893815617642de98705d2dc3de73d58327f (diff) | |
download | xK-6bfe577f1b8ec055d1d903a417ffac152f97751f.tar.gz xK-6bfe577f1b8ec055d1d903a417ffac152f97751f.tar.xz xK-6bfe577f1b8ec055d1d903a417ffac152f97751f.zip |
xP: make the buffer list selectable by Vimium
Diffstat (limited to 'xP/public/xP.js')
-rw-r--r-- | xP/public/xP.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xP/public/xP.js b/xP/public/xP.js index 61238c5..11b4b69 100644 --- a/xP/public/xP.js +++ b/xP/public/xP.js @@ -1,4 +1,4 @@ -// Copyright (c) 2022, Přemysl Eric Janouch <p@janouch.name> +// Copyright (c) 2022 - 2023, Přemysl Eric Janouch <p@janouch.name> // SPDX-License-Identifier: 0BSD import * as Relay from './proto.js' @@ -462,14 +462,15 @@ let BufferList = { classes.push('highlighted') highlighted = true } - return m('.item', { + // The role makes it selectable in VIM-like browser extensions. + return m('.item[role=tab]', { onclick: event => bufferActivate(name), class: classes.join(' '), }, displayName) }) updateIcon(rpc.ws === undefined ? null : highlighted) - return m('.list', {}, items) + return m('.list[role=tablist]', {}, items) }, } |