hellosiyan / Viewnior

Elegant Image Viewer
https://siyanpanayotov.com/project/viewnior/
GNU General Public License v3.0
320 stars 54 forks source link

Issues with keyboard shortcuts #55

Closed yellowfeet closed 5 years ago

yellowfeet commented 5 years ago

I'm running viewnior 1.7 on Fedora 29 (gnome on wayland) and I'm having trouble with keyboard shortcuts.

I've used viewnior on other distros in the past and I'm sure I remember being able to press 0 to fit the current image to the window (as View->Best Fit does from the menu). Well, I may be wrong about that, but whenever I press 0 now I get the following error: GLib-GObject-CRITICAL **: 11:27:23.139: g_value_get_enum: assertion 'G_VALUE_HOLDS_ENUM (value)' failed

I have also tried editing ~/.config/viewnior/accel_map but I'm unable to get any of my edits to be recognised. Also, when I access certain menu items within viewnior, this file is overwritten with a default version and none of my changes remain.

yellowfeet commented 5 years ago

It turns out I'm just unobservant. I didn't notice the semicolons at the beginning of the lines in accel_map. Deleting the semicolon on the relevant line seems to have done the job! Doh! Still puzzled by the error I was getting before, but all seems to work now.