mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-01-18 16:40:41 -06:00
Modified keymaps are saved at exit
This commit is contained in:
parent
95fc66dfba
commit
8728c74aac
@ -445,6 +445,7 @@ class Controller(object):
|
||||
return output.speak(page.get_message(), True)
|
||||
output.speak(_(u"{0} not found.").format(string,), True)
|
||||
page.buffer.list.select_item(start)
|
||||
|
||||
def edit_keystrokes(self, *args, **kwargs):
|
||||
editor = keystrokeEditor.KeystrokeEditor()
|
||||
if editor.changed == True:
|
||||
@ -553,6 +554,7 @@ class Controller(object):
|
||||
log.debug("Exiting...")
|
||||
log.debug("Saving global configuration...")
|
||||
config.app.write()
|
||||
config.keymap.write()
|
||||
for item in session_.sessions:
|
||||
if session_.sessions[item].logged == False: continue
|
||||
log.debug("Saving config for %s session" % (session_.sessions[item].session_id,))
|
||||
|
@ -50,4 +50,3 @@ reverse_geocode = control+win+g
|
||||
view_reverse_geocode = control+win+shift+g
|
||||
get_trending_topics = control+win+t
|
||||
find = control+win+/
|
||||
secondary_interact = control+win+alt+return
|
||||
|
@ -23,10 +23,8 @@ class KeystrokeEditor(object):
|
||||
answer = edit_dialog.get_response()
|
||||
if answer == widgetUtils.OK:
|
||||
new_keystroke = self.get_edited_keystroke(edit_dialog)
|
||||
print new_keystroke
|
||||
if new_keystroke != self.map[action]:
|
||||
self.changed = True
|
||||
print "changed"
|
||||
self.map[action] = new_keystroke
|
||||
|
||||
def set_keystroke(self, keystroke, dialog):
|
||||
|
Loading…
x
Reference in New Issue
Block a user