GNOME Bugzilla – Bug 339397
Accelerator snippets don't work when gedit is just started
Last modified: 2019-03-23 20:39:25 UTC
Because of the lazy loading, snippets which are activated by accelerators won't work when snippets aren't yet loaded. It works for tab trigger snippets because when pressing <tab> the snippets are loaded when the weren't already. With accelerators this doesn't happen because the accelerators aren't installed yet (the snippets aren't loaded) so nothing happens. A possible solution would be to have a check on possible valid accelerator in the keypress event of the view and load snippets when such a keypress event occurs. I'm not sure this is the right approach though.
Created attachment 64105 [details] [review] Fix This patch fixes the issue using the proposed method.