TEXT_BINDINGS stay in textwidget.py.

This commit is contained in:
Simon Forman
2018-07-22 10:14:45 -07:00
parent f96362a904
commit 17b9fba65e
2 changed files with 56 additions and 62 deletions
+5 -1
View File
@@ -73,10 +73,14 @@ def get_font(family='EB Garamond', size=14):
TEXT_BINDINGS = {
#I want to ensure that these keyboard shortcuts work.
'<Control-Return>': lambda tv: tv._control_enter,
'<Control-v>': lambda tv: tv._paste,
'<Control-V>': lambda tv: tv._paste,
'<F3>': lambda tv: tv.copy_selection_to_stack,
'<F4>': lambda tv: tv.copyto,
'<Shift-F3>': lambda tv: tv.cut,
'<Shift-F4>': lambda tv: tv.pastecut,
'<Shift-Insert>': lambda tv: tv._paste,
'<Control-Return>': lambda tv: tv._control_enter,
}