From 6bfe577f1b8ec055d1d903a417ffac152f97751f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Wed, 5 Apr 2023 23:08:49 +0200 Subject: [PATCH] xP: make the buffer list selectable by Vimium --- LICENSE | 2 +- xP/public/xP.js | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/LICENSE b/LICENSE index 4b31682..0610bbd 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2014 - 2022, Přemysl Eric Janouch +Copyright (c) 2014 - 2023, Přemysl Eric Janouch Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. 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 +// Copyright (c) 2022 - 2023, Přemysl Eric Janouch // 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) }, }