hide comments
This commit is contained in:
1 parent
9f7a0ca226
commit
37884d0c17
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -522,6 +522,7 @@ class KaTrainGui(Screen, KaTrainBase):
|
||||
return first_child if isinstance(first_child, Popup) else None
|
||||
|
||||
def _on_keyboard_down(self, _keyboard, keycode, _text, modifiers):
|
||||
ctrl_pressed = "ctrl" in modifiers
|
||||
if self.controls.note.focus:
|
||||
return # when making notes, don't allow keyboard shortcuts
|
||||
popup = self.popup_open
|
||||
@@ -536,7 +537,6 @@ class KaTrainGui(Screen, KaTrainBase):
|
||||
return
|
||||
else:
|
||||
return
|
||||
ctrl_pressed = "ctrl" in modifiers
|
||||
shift_pressed = "shift" in modifiers
|
||||
shortcuts = self.shortcuts
|
||||
if keycode[1] == "tab":
|
||||
|
||||
@@ -240,5 +240,5 @@ TOP_MOVE_OPTIONS = [
|
||||
TOP_MOVE_NOTHING,
|
||||
]
|
||||
|
||||
SGF_INTERNAL_COMMENTS_MARKER = "\u200b\u3164"
|
||||
SGF_INTERNAL_COMMENTS_MARKER = "\u3164\u200b"
|
||||
SGF_SEPARATOR_MARKER = "\u3164\u3164"
|
||||
@@ -131,7 +131,7 @@ class GameNode(SGFNode):
|
||||
properties["SQ"] = best_sq
|
||||
if top_x and "MA" not in properties:
|
||||
properties["MA"] = [top_x]
|
||||
comments.append(self.comment(sgf=True, interactive=False))
|
||||
comments.append(self.comment(sgf=True, interactive=False)+SGF_INTERNAL_COMMENTS_MARKER)
|
||||
if self.is_root:
|
||||
comments = [
|
||||
i18n._("SGF start message") + SGF_INTERNAL_COMMENTS_MARKER + "\n",
|
||||
|
||||
Reference in new issue
Block a user