improve set/clear window mode commands

This commit is contained in:
chrys 2016-09-24 23:05:28 +02:00
parent c05382e828
commit bfcd32465b
3 changed files with 3 additions and 1 deletions

View File

@ -23,7 +23,7 @@ KEY_FENRIR,KEY_KP8=curr_screen_before_cursor
KEY_FENRIR,KEY_KP2=curr_screen_after_cursor KEY_FENRIR,KEY_KP2=curr_screen_after_cursor
KEY_FENRIR,KEY_1=set_window_application KEY_FENRIR,KEY_1=set_window_application
KEY_FENRIR,KEY_3=clear_window_application KEY_FENRIR,KEY_3=clear_window_application
KEY_FENRIR,KEY_3=clear_bookmark_1 #KEY_FENRIR,KEY_3=clear_bookmark_1
#KEY_FENRIR,KEY_1=set_bookmark_1 #KEY_FENRIR,KEY_1=set_bookmark_1
KEY_FENRIR,KEY_2=bookmark_1 KEY_FENRIR,KEY_2=bookmark_1
KEY_KPPLUS=last_incomming KEY_KPPLUS=last_incomming

View File

@ -18,6 +18,7 @@ class command():
def run(self): def run(self):
if self.env['runtime']['cursorManager'].clearWindowForApplication(): if self.env['runtime']['cursorManager'].clearWindowForApplication():
currApp = self.env['runtime']['applicationManager'].getCurrentApplication()
self.env['runtime']['outputManager'].presentText('Window Mode off for application ' + currApp, interrupt=True) self.env['runtime']['outputManager'].presentText('Window Mode off for application ' + currApp, interrupt=True)
else: else:
self.env['runtime']['outputManager'].presentText("Not in window Mode", interrupt=True) self.env['runtime']['outputManager'].presentText("Not in window Mode", interrupt=True)

View File

@ -18,6 +18,7 @@ class command():
def run(self): def run(self):
if self.env['runtime']['cursorManager'].setWindowForApplication(): if self.env['runtime']['cursorManager'].setWindowForApplication():
currApp = self.env['runtime']['applicationManager'].getCurrentApplication()
self.env['runtime']['outputManager'].presentText('Window Mode on for application ' + currApp, interrupt=True) self.env['runtime']['outputManager'].presentText('Window Mode on for application ' + currApp, interrupt=True)
self.env['runtime']['cursorManager'].clearMarks() self.env['runtime']['cursorManager'].clearMarks()
else: else: