Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cursorless-talon/src/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@dataclasses.dataclass
class CursorlessCommand:
version = COMMAND_VERSION
spokenForm: str
spokenForm: str | None
usePrePhraseSnapshot: bool
action: dict

Expand Down Expand Up @@ -66,7 +66,7 @@ def construct_cursorless_command(action: dict) -> dict:
except KeyError:
use_pre_phrase_snapshot = False

spoken_form = " ".join(last_phrase["phrase"])
spoken_form = " ".join(last_phrase["phrase"]) if "phrase" in last_phrase else None

return make_serializable(
CursorlessCommand(
Expand Down
Loading