Menus for nano improved. Thanks hjozwiak
This commit is contained in:
parent
74fa308904
commit
666630e7ef
@ -0,0 +1,33 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
# -*- encoding: utf-8
|
||||||
|
from fenrirscreenreader.core import debug
|
||||||
|
|
||||||
|
|
||||||
|
class command():
|
||||||
|
def __init__(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def initialize(self, environment):
|
||||||
|
self.env = environment
|
||||||
|
self.keyMakro = [[1, 'KEY_LEFTCTRL'],
|
||||||
|
[1, 'KEY_G'],
|
||||||
|
[0.05, 'SLEEP'],
|
||||||
|
[0, 'KEY_G'],
|
||||||
|
[0, 'KEY_LEFTCTRL']]
|
||||||
|
|
||||||
|
def shutdown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def getDescription(self):
|
||||||
|
return "Learn about the Nano text editor."
|
||||||
|
|
||||||
|
def run(self):
|
||||||
|
self.env['runtime']['outputManager'].presentText(
|
||||||
|
"Okay, loading the information about Nano.", interrupt=True)
|
||||||
|
if self.env['runtime']['inputManager'].getShortcutType() in ['KEY']:
|
||||||
|
self.env['runtime']['inputManager'].sendKeys(self.keyMakro)
|
||||||
|
elif self.env['runtime']['inputManager'].getShortcutType() in ['BYTE']:
|
||||||
|
self.env['runtime']['byteManager'].sendBytes(self.byteMakro)
|
||||||
|
|
||||||
|
def setCallback(self, callback):
|
||||||
|
pass
|
@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
# -*- encoding: utf-8
|
@ -1,21 +1,33 @@
|
|||||||
#!/bin/python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- encoding: utf-8
|
||||||
|
from fenrirscreenreader.core import debug
|
||||||
# Fenrir TTY screen reader
|
|
||||||
# By Chrys, Storm Dragon, and contributers.
|
|
||||||
|
class command():
|
||||||
from fenrirscreenreader.core import debug
|
def __init__(self):
|
||||||
|
pass
|
||||||
class command():
|
|
||||||
def __init__(self):
|
def initialize(self, environment):
|
||||||
pass
|
self.env = environment
|
||||||
def initialize(self, environment):
|
self.keyMakro = [[1, 'KEY_LEFTCTRL'],
|
||||||
self.env = environment
|
[1, 'KEY_O'],
|
||||||
def shutdown(self):
|
[0.05, 'SLEEP'],
|
||||||
pass
|
[0, 'KEY_O'],
|
||||||
def getDescription(self):
|
[0, 'KEY_LEFTCTRL']]
|
||||||
return 'No description found'
|
|
||||||
def run(self):
|
def shutdown(self):
|
||||||
self.env['runtime']['outputManager'].presentText('ok i run open save' , interrupt=True)
|
pass
|
||||||
def setCallback(self, callback):
|
|
||||||
pass
|
def getDescription(self):
|
||||||
|
return "Save your work."
|
||||||
|
|
||||||
|
def run(self):
|
||||||
|
self.env['runtime']['outputManager'].presentText(
|
||||||
|
"Okay, you will now be asked to save your work.", interrupt=True)
|
||||||
|
if self.env['runtime']['inputManager'].getShortcutType() in ['KEY']:
|
||||||
|
self.env['runtime']['inputManager'].sendKeys(self.keyMakro)
|
||||||
|
elif self.env['runtime']['inputManager'].getShortcutType() in ['BYTE']:
|
||||||
|
self.env['runtime']['byteManager'].sendBytes(self.byteMakro)
|
||||||
|
|
||||||
|
def setCallback(self, callback):
|
||||||
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user