Skip to content

Commit

Permalink
#56 add: tabindex and accesskey
Browse files Browse the repository at this point in the history
  • Loading branch information
pbek committed Feb 3, 2024
1 parent efb5cb8 commit 9a61dca
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/pages/PopupPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
v-model="search"
ref="searchInput"
accesskey="s"
tabindex="1"
autofocus
:label="getLocale('popupSearchLabel')"
>
Expand Down Expand Up @@ -77,13 +78,13 @@
</q-select>
</div>
<div class="col q-pa-md q-gutter-sm">
<q-btn round color="secondary" icon="open_in_new" @click="openFilteredBookmarks">
<q-btn round color="secondary" icon="open_in_new" @click="openFilteredBookmarks" accesskey="o">
<q-tooltip class="bg-accent">{{ getLocale('OpenAllBookmarks') }}</q-tooltip>
</q-btn>
<q-btn round color="secondary" icon="bookmarks" @click="bookmarkAllTabsDialog = true">
<q-btn round color="secondary" icon="bookmarks" @click="bookmarkAllTabsDialog = true" accesskey="b">
<q-tooltip class="bg-accent">{{ getLocale('BookmarkAllTabs') }}</q-tooltip>
</q-btn>
<q-btn round color="primary" icon="bookmark_add" @click="addBookmarkDialog = true">
<q-btn round color="primary" icon="bookmark_add" @click="addBookmarkDialog = true" accesskey="a">
<q-tooltip class="bg-accent">{{ getLocale('AddBookmark') }}</q-tooltip>
</q-btn>
</div>
Expand All @@ -102,7 +103,7 @@
<q-tr :props="props" @click="openUrl(props.row.url)">
<q-td v-if="props.row.name" key="name" :props="props">
<div>
<div class="column-name">{{ truncateText( props.row.name, 40 ) }}</div>
<div class="column-name" tabindex="2" :accesskey="props.rowIndex + 1" @keyup.enter="openUrl(props.row.url)">{{ truncateText( props.row.name, 40 ) }}</div>
<q-tooltip>
<div class="column-name" v-if="props.row.name">{{ props.row.name }}</div>
<div>{{ props.row.url }}</div>
Expand Down

0 comments on commit 9a61dca

Please sign in to comment.