This commit is contained in:
Florian Bruhin 2014-10-06 22:30:37 +02:00
parent ae44aa01a6
commit 1ad081a2db

View File

@ -81,6 +81,7 @@ def _get_modeman(win_id):
"""Get a modemanager object."""
return objreg.get('mode-manager', scope='window', window=win_id)
def enter(win_id, mode, reason=None, override=False):
"""Enter the mode 'mode'."""
_get_modeman(win_id).enter(mode, reason, override)