Add hotkeys to tooltips (#213)

This commit is contained in:
Erayd
2020-06-27 23:16:01 +12:00
committed by GitHub
parent 962c305f21
commit a95daae8e3
2 changed files with 4 additions and 3 deletions

View File

@@ -81,7 +81,7 @@ function view(ctl, params) {
onkeydown: keyHandler.bind(result)
},
[
m("div.name", [
m("div.name", { title: "Fill username / password | <Enter>" }, [
m("div.line1", [
m(
"div.store.badge",
@@ -108,12 +108,12 @@ function view(ctl, params) {
]),
m("div.action.copy-password", {
tabindex: 0,
title: "Copy password",
title: "Copy password | <Ctrl+C>",
action: "copyPassword"
}),
m("div.action.copy-user", {
tabindex: 0,
title: "Copy username",
title: "Copy username | <Ctrl+Shift+C>",
action: "copyUsername"
})
]

View File

@@ -62,6 +62,7 @@ function view(ctl, params) {
? m("div.hint.badge", [
host,
m("div.remove-hint", {
title: "Clear domain filter | <Backspace>",
onclick: function(e) {
var target = document.querySelector(
".part.search > input[type=text]"