mirror of
https://github.com/zadam/trilium.git
synced 2025-12-16 05:09:54 +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 (
|
||||
<a class="tn-link" href="#"
|
||||
data-trigger-command={triggerCommand}
|
||||
role="button"
|
||||
onKeyDown={(e)=> {
|
||||
if (e.code === "Space") {
|
||||
onClick?.();
|
||||
}
|
||||
}}
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
onClick?.();
|
||||
|
||||
Reference in New Issue
Block a user