mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-09 11:12:06 +00:00
a64cdfaf78
With key shortcuts set in the glade files it is not easy to change the shortcuts on macOS. Add AccelPaths to each MenuItem to allow adding or modifying accelerator in codes. Uses the recommended format `<Deluge-MainWindow>/MenuName` Update menubar code to use new functionality, taking advantage of accelerator_parse to specify accelerators as strings instead of Gdk flags. A future idea would be to use `Gtk.AccelMap.load` to have shortcuts loaded from user config. Co-authored-by: Gregorio Litenstein <g.litenstein@gmail.com>