Merge branch 'issue1113' into develop

This commit is contained in:
nicolargo 2017-07-09 18:49:34 +02:00
commit 86c7b1339d
2 changed files with 4 additions and 2 deletions

1
NEWS
View File

@ -16,6 +16,7 @@ Bugs corrected:
* glances_network `OSError: [Errno 19] No such device` (issue #1106)
* GPU plugin. <class 'TypeError'>: ... not JSON serializable"> (issue #1112)
* PermissionError on macOS (issue #1120)
* Cant move up or down in glances --browser (issue #1113)
Installation:

View File

@ -21,6 +21,7 @@
import sys
import curses
from glances.outputs.glances_curses import _GlancesCurses
from glances.logger import logger
@ -108,10 +109,10 @@ class GlancesCursesBrowser(_GlancesCurses):
# 'ENTER' > Run Glances on the selected server
logger.debug("Server number {} selected".format(self.cursor + 1))
self.active_server = self.cursor
elif self.pressedkey == 65:
elif self.pressedkey == curses.KEY_UP:
# 'UP' > Up in the server list
self.cursor_up(servers_list)
elif self.pressedkey == 66:
elif self.pressedkey == curses.KEY_DOWN:
# 'DOWN' > Down in the server list
self.cursor_down(servers_list)