Skip to content
This repository has been archived by the owner on Feb 3, 2020. It is now read-only.

Commit

Permalink
fix: empty key bindings are not saved
Browse files Browse the repository at this point in the history
  • Loading branch information
baverman committed Jan 8, 2012
1 parent 29dcf82 commit 13c5069
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uxie/actions.py
Expand Up @@ -73,7 +73,7 @@ def replace_generics(self, name, keys):
if name in self.default_generics and set(self.default_generics[name]) == set(keys):
self.changed_generics.pop(name, None)
else:
if keys:
if keys or name in self.default_generics:
self.changed_generics[name] = [(gtk.accelerator_name(*km), pr) for km, pr in keys]
else:
self.changed_generics.pop(name, None)
Expand Down Expand Up @@ -442,7 +442,7 @@ def replace_keys(self, ctx, name, keys):
if key in self.default_shortcuts and set(self.default_shortcuts[key]) == set(keys):
self.changed_shortcuts.pop(key, None)
else:
if keys:
if keys or key in self.default_shortcuts:
self.changed_shortcuts[key] = [(gtk.accelerator_name(*km), pr) for km, pr in keys]
else:
self.changed_shortcuts.pop(key, None)
Expand Down

0 comments on commit 13c5069

Please sign in to comment.