[develop] Hotkeys broken #967

This commit is contained in:
nicolargo 2016-11-17 21:22:38 +01:00
parent da0db5ccba
commit dfd97d0d4d

View File

@ -352,6 +352,16 @@ class _GlancesCurses(object):
elif self.pressedkey == ord('\n'):
# 'ENTER' > Edit the process filter
self.edit_filter = not self.edit_filter
elif self.pressedkey == ord('4'):
if self.args.full_quicklook:
self.enable_fullquicklook()
else:
self.disable_fullquicklook()
elif self.pressedkey == ord('5'):
if self.args.disable_top:
self.disable_top()
else:
self.enable_top()
elif self.pressedkey == ord('E'):
# 'E' > Erase the process filter
glances_processes.process_filter = None
@ -382,16 +392,6 @@ class _GlancesCurses(object):
else:
glances_processes.enable_extended()
if self.args.disable_top:
self.disable_top()
else:
self.enable_top()
if self.args.full_quicklook:
self.enable_fullquicklook()
else:
self.disable_fullquicklook()
# Return the key code
return self.pressedkey