cleanup
This commit is contained in:
parent
cb1b8509ce
commit
7da7e1e1ad
@ -163,50 +163,13 @@ class fenrirManager():
|
|||||||
|
|
||||||
def detectByteCommand(self, escapeSequence):
|
def detectByteCommand(self, escapeSequence):
|
||||||
convertedEscapeSequence = self.environment['runtime']['byteManager'].unifyEscapeSeq(escapeSequence)
|
convertedEscapeSequence = self.environment['runtime']['byteManager'].unifyEscapeSeq(escapeSequence)
|
||||||
command = ''
|
|
||||||
try:
|
try:
|
||||||
'''
|
|
||||||
commands = {
|
|
||||||
b'^[h':'toggle_tutorial_mode',
|
|
||||||
b'^[/': 'shut_up',
|
|
||||||
b'^[O': 'review_bottom',
|
|
||||||
b'^[U': 'review_top',
|
|
||||||
b'^[i': 'review_curr_line',
|
|
||||||
b'^[u': 'review_prev_line',
|
|
||||||
b'^[o': 'review_next_line',
|
|
||||||
b'^[J': 'review_line_begin',
|
|
||||||
b'^[L': 'review_line_end',
|
|
||||||
b'^[j': 'review_line_first_char',
|
|
||||||
b'^[L': 'review_line_last_char',
|
|
||||||
b'^[k': 'review_curr_word',
|
|
||||||
b'^[j': 'review_prev_word',
|
|
||||||
b'^[l': 'review_next_word',
|
|
||||||
b'^[,': 'review_curr_char',
|
|
||||||
b'^[m': 'review_prev_char',
|
|
||||||
b'^[.': 'review_next_char',
|
|
||||||
b'^[<': 'curr_char_phonetic',
|
|
||||||
b'^[M': 'prev_char_phonetic',
|
|
||||||
b'^[>': 'next_char_phonetic',
|
|
||||||
b'^[OR': 'toggle_sound',
|
|
||||||
b'^[OS': 'toggle_speech',
|
|
||||||
b'^[8': 'toggle_highlight_tracking',
|
|
||||||
b'^[q': 'quit_fenrir',
|
|
||||||
b'^[t': 'time',
|
|
||||||
b'^[y': 'date',
|
|
||||||
b'^[[5~': 'prev_clipboard',
|
|
||||||
b'^[[6~': 'next_clipboard',
|
|
||||||
b'^[C': 'curr_clipboard',
|
|
||||||
b'^[c': 'copy_marked_to_clipboard',
|
|
||||||
b'^[v': 'paste_clipboard',
|
|
||||||
b'^[[15~': 'import_clipboard_from_file',
|
|
||||||
b'^[X': 'remove_marks',
|
|
||||||
b'^[x': 'set_mark',
|
|
||||||
}
|
|
||||||
'''
|
|
||||||
command = self.environment['runtime']['inputManager'].getCommandForShortcut(convertedEscapeSequence)
|
command = self.environment['runtime']['inputManager'].getCommandForShortcut(convertedEscapeSequence)
|
||||||
self.environment['runtime']['eventManager'].putToEventQueue(fenrirEventType.ExecuteCommand, command)
|
self.environment['runtime']['eventManager'].putToEventQueue(fenrirEventType.ExecuteCommand, command)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
if self.command != '':
|
||||||
|
self.command = ''
|
||||||
def detectCommand(self):
|
def detectCommand(self):
|
||||||
if self.environment['input']['keyForeward'] > 0:
|
if self.environment['input']['keyForeward'] > 0:
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user