Create shortcut to undo back to main branch

This commit is contained in:
LiamHz committed 2021-01-18 13:01:15 -08:00
1 parent 0822ee513a
commit fd5eb14efd
4 files changed
+13

No files matched your search

+2
View File
@@ -610,6 +610,8 @@ class KaTrainGui(Screen, KaTrainBase):
self.controls.set_status(i18n._("Copied SGF to clipboard."), STATUS_INFO)
elif keycode[1] == "v" and ctrl_pressed:
self.load_sgf_from_clipboard()
elif keycode[1] == "b" and shift_pressed:
self("undo", "main-branch")
elif keycode[1] in shortcuts.keys() and not ctrl_pressed:
shortcut = shortcuts[keycode[1]]
if isinstance(shortcut, Widget):