Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when moving caret to end of line using physical keyboard (Cmd+Right) #587

Open
pulyaevskiy opened this issue Dec 31, 2021 · 0 comments

Comments

@pulyaevskiy
Copy link
Contributor

Only occurs when the caret is 1 character away from the end of last line in a document.

======== Exception caught by services library ======================================================
The following assertion was thrown while processing the key message handler:
No child at position TextPosition(offset: 4469, affinity: TextAffinity.upstream)
'package:zefyr/src/rendering/editable_box.dart':
Failed assertion: line 243 pos 12: 'targetChild != null'

When the exception was thrown, this was the stack: 
#2      RenderEditableContainerBox.childAtPosition (package:zefyr/src/rendering/editable_box.dart:243:12)
#3      RenderEditor.getLineAtOffset (package:zefyr/src/rendering/editor.dart:885:19)
#4      TextEditingActionTarget.moveSelectionRightByLine (package:flutter/src/widgets/text_editing_action_target.dart:1363:58)
#5      _MoveSelectionRightByLineTextAction.invoke (package:flutter/src/widgets/default_text_editing_actions.dart:274:30)
#6      ActionDispatcher.invokeAction (package:flutter/src/widgets/actions.dart:571:21)
#7      ShortcutManager.handleKeypress (package:flutter/src/widgets/shortcuts.dart:717:38)
#8      FocusManager._handleKeyMessage (package:flutter/src/widgets/focus_manager.dart:1593:32)
#9      KeyEventManager.handleRawKeyMessage (package:flutter/src/services/hardware_keyboard.dart:832:37)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant