johnfactotum / foliate

Read e-books in style
https://johnfactotum.github.io/foliate/
GNU General Public License v3.0
6.35k stars 289 forks source link

Customizable kbd #773

Open prosoitos opened 3 years ago

prosoitos commented 3 years ago

Is your feature request related to a problem? Please describe.

Not a problem. This is an enhancement.

Describe the solution you'd like

All the tools I use have customizable kbd so that I have my own (somewhat vim-like) set of kbd in my pdf reader, image viewer, pager, web browser, etc. etc.

I would be delighted to be able to set those kbd in foliate.

I think that a lot of users would be happy to be able to customize their own kbd.

While I understand that this may not seem fundamental, it participates greatly to the ease of use and pleasure to use a tool for many including me.

Thank you 🙂

archisman-panigrahi commented 3 years ago

Not sure what exactly you want to achieve, but you can use your own preferred keyboard shortcuts by editing the default shortcuts in src/main.js. https://github.com/johnfactotum/foliate/blob/master/src/main.js#L329

prosoitos commented 3 years ago

Thanks. It is useful to know where the src for the kbd is. That option means that I would have to compile from source (instead of using my linux distro package manager) and it would make updating foliate complicated.

Being able to customize the kbd in some config file would be a lot more user friendly.

johnfactotum commented 3 years ago

Not totally opposed to this, but I'd prefer if there's standard GTK or libhandy/libadwaita support for this. In general GNOME/GTK apps don't have customizable shortcuts, and I would rather follow that convention instead of rolling our own custom solution.