2019-01-22 15:29:55 -05:00
|
|
|
#!/bin/python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
# Fenrir TTY screen reader
|
|
|
|
# By Chrys, Storm Dragon, and contributers.
|
|
|
|
|
|
|
|
from fenrirscreenreader.core import debug
|
|
|
|
|
|
|
|
class command():
|
|
|
|
def __init__(self):
|
|
|
|
pass
|
|
|
|
def initialize(self, environment):
|
|
|
|
self.env = environment
|
|
|
|
def shutdown(self):
|
|
|
|
pass
|
|
|
|
def getDescription(self):
|
2019-01-28 18:03:31 -05:00
|
|
|
return _('leave v menu submenu')
|
2019-01-22 15:29:55 -05:00
|
|
|
def run(self):
|
2019-02-03 18:19:21 -05:00
|
|
|
print('DEC LEVEL')
|
2019-02-04 13:39:36 -05:00
|
|
|
try:
|
|
|
|
self.env['runtime']['vmenuManager'].decLevel()
|
|
|
|
text = self.env['runtime']['vmenuManager'].getCurrentEntry()
|
|
|
|
self.env['runtime']['outputManager'].presentText(text, interrupt=True)
|
|
|
|
except Exception as e:
|
|
|
|
print(e)
|
2019-01-22 15:29:55 -05:00
|
|
|
def setCallback(self, callback):
|
|
|
|
pass
|