Skip to content

Change showCharts keyboard shorcut default: "Control+c" #17

Description

@larryopoly

Thanks for maintaining this repo. Is it possible/feasible to change the default shortcut for showing/hiding the charts? I often want copy amount or balance and have to right click and select copy versus just pressing Ctrl+c. Perhaps replacing this Alt+c would work?

I thought I could just update or comment out the code from here like so:

<button
  type="button"
  on:click={() => showCharts.update((v) => !v)}
  // use:keyboardShortcut={"Control+c"} <--- comment out this line
  class:closed={!$showCharts}
  class="toggle-chart"
/>

I'm not sure how to properly enter the docker container and access the files. Here's my docker-compose file if it makes any difference:

version: "3.7"
services:
  fava:
    image: yegle/fava
    ports:
      - 5000:5000
    volumes:
    - /path/to/beanfile:/data/
    environment:
      BEANCOUNT_FILE: /data/main.bean

Any guidance is helpful here, thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions