sonnyp / Commit

Commit message editor
https://apps.gnome.org/Commit/
GNU General Public License v3.0
134 stars 26 forks source link

Block commit shortcut when message is empty #85

Closed axtloss closed 2 years ago

axtloss commented 2 years ago

This stops the user from bypassing the blocked commit button when the entry is empty, fixes #84

axtloss commented 2 years ago

It seems like it's not possible to bind an accel to a button/widget since gtk4 since I can't find anything about that in the documentation, so the second option may be the only solution

axtloss commented 2 years ago

I changed it to have the empty checks inside the win.save action (the second option you mentioned), since I couldn't find any way to bind the accelerator to the button directly