diff options
| author | Teddy Wing | 2015-12-24 16:44:41 -0800 |
|---|---|---|
| committer | Teddy Wing | 2015-12-24 16:44:41 -0800 |
| commit | befa32cecb2b949b36df8f93de1a85a21809e3cd (patch) | |
| tree | 1ce83da14d23cfb9820dbca2fb5772fa690ce7ae | |
| parent | 5bfe8da1eb1d561c3d86599b8c3094fbbdc9a7b5 (diff) | |
| download | RoboFont-Equalize-Sidebearings-Key-befa32cecb2b949b36df8f93de1a85a21809e3cd.tar.bz2 | |
equalize_sidebearings.py: Set default hotkey to 'e'
Use a class variable to store the default. This will change in the very
near future when we make this user editable.
| -rw-r--r-- | equalize_sidebearings.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/equalize_sidebearings.py b/equalize_sidebearings.py index 98d209e..18515ad 100644 --- a/equalize_sidebearings.py +++ b/equalize_sidebearings.py @@ -10,11 +10,13 @@ class CustomSpaceCenterMenuForGlyph(SpaceCenterMenuForGlyph): class EqualizeSidebearings(object): + DEFAULT_ACTIVATION_KEY = 'e' + def __init__(self): addObserver(self, 'equalize', 'spaceCenterKeyUp') def equalize(self, info): - if info['event'].characters() == 'a': + if info['event'].characters() == self.DEFAULT_ACTIVATION_KEY: space_center_menu = CustomSpaceCenterMenuForGlyph( info['glyph'].naked()) space_center_menu.equalSideBearings_(self) |
