Skip to content

Commit

Permalink
coin2html: dblclick in account list focuses the list
Browse files Browse the repository at this point in the history
  • Loading branch information
mkobetic committed Dec 8, 2024
1 parent 4a569ee commit abc878d
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 8 deletions.
4 changes: 4 additions & 0 deletions cmd/coin2html/js/src/views.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ export function addAccountList() {
.on("click", (e: Event) => {
State.SelectedAccount = (e.currentTarget as liWithAccount).__data__;
updateAccount();
})
.on("dblclick", (e: Event) => {
State.SelectedAccount = (e.currentTarget as liWithAccount).__data__;
updateAccounts();
});
}

Expand Down
46 changes: 38 additions & 8 deletions examples/yearly/viewer/index.html

Large diffs are not rendered by default.

0 comments on commit abc878d

Please sign in to comment.