mirror of
https://github.com/zadam/trilium.git
synced 2025-12-16 21:29:56 +01:00
client/status bar/note info: fix an issue pointed by gemini-code-assist
This commit is contained in:
@@ -11,6 +11,12 @@ export default function LinkButton({ onClick, text, triggerCommand }: LinkButton
|
|||||||
return (
|
return (
|
||||||
<a class="tn-link" href="#"
|
<a class="tn-link" href="#"
|
||||||
data-trigger-command={triggerCommand}
|
data-trigger-command={triggerCommand}
|
||||||
|
role="button"
|
||||||
|
onKeyDown={(e)=> {
|
||||||
|
if (e.code === "Space") {
|
||||||
|
onClick?.();
|
||||||
|
}
|
||||||
|
}}
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
onClick?.();
|
onClick?.();
|
||||||
|
|||||||
Reference in New Issue
Block a user