diff --git a/config/keyboard/desktop.conf b/config/keyboard/desktop.conf index 0be15d98..e2d21555 100644 --- a/config/keyboard/desktop.conf +++ b/config/keyboard/desktop.conf @@ -1,5 +1,5 @@ 1-KEY_KP0=fenrirKey -1-KEY_LEFTCTRL=shut_up +#1-KEY_LEFTCTRL=shut_up 1-KEY_RIGHTCTRL=shut_up 1-KEY_KP8=curr_line 1-KEY_KP7=prev_line @@ -12,6 +12,7 @@ 1-KEY_KP3=next_char 1-KEY_KPDOT=exit_review #=curr_screen +#=last_incomming 1-KEY_KP0,1-KEY_F2=toggle_braille 1-KEY_KP0,1-KEY_F3=toggle_sound 1-KEY_KP0,1-KEY_F4=toggle_speech diff --git a/src/fenrir-package/commands/commands/curr_screen.py b/src/fenrir-package/commands/commands/curr_screen.py index cb841226..ae47b75a 100644 --- a/src/fenrir-package/commands/commands/curr_screen.py +++ b/src/fenrir-package/commands/commands/curr_screen.py @@ -4,7 +4,10 @@ class command(): def __init__(self): pass def run(self, environment): - environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newContentText'],interrupt=True) + if environment['screenData']['newContentText'].strip(" \t\n") == '': + environment['runtime']['outputManager'].presentText(environment, "blank", interrupt=True) + else: + environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newContentText'],interrupt=True) return environment def setCallback(self, callback): pass diff --git a/src/fenrir-package/commands/commands/last_incomming.py b/src/fenrir-package/commands/commands/last_incomming.py new file mode 100644 index 00000000..3fe17d2d --- /dev/null +++ b/src/fenrir-package/commands/commands/last_incomming.py @@ -0,0 +1,15 @@ +#!/bin/python + +class command(): + def __init__(self): + pass + def run(self, environment): + if environment['screenData']['newDelta'].strip(" \t\n") == '': + environment['runtime']['outputManager'].presentText(environment, "blank", interrupt=True) + else: + environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newDelta'], interrupt=True) + return environment + def setCallback(self, callback): + pass + def shutdown(self): + pass