Merge pull request #156 from CanonicalLtd/mwhudson/no-escape

prevent escape from leaving the finish screen
This commit is contained in:
Mathieu Trudel-Lapierre 2016-09-09 14:49:35 -04:00 committed by GitHub
commit e92f184d40
1 changed files with 7 additions and 0 deletions

View File

@ -127,3 +127,10 @@ class LoginView(BaseView):
utils.disable_first_boot_service()
self.signal.emit_signal('quit')
def keypress(self, size, key):
if key == 'esc':
# You can't press escape to get out of this screen!
return None
return super().keypress(size, key)