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

fix reported bugs #140

Merged
merged 3 commits into from
May 29, 2023
Merged
Show file tree
Hide file tree
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
16 changes: 8 additions & 8 deletions lib/l10n/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"@@locale": "en",
"bold": "Bold",
"@bold": {},
"bulletedList": "Bulleted List",
"bulletedList": "Bulleted list",
"@bulletedList": {},
"checkbox": "Checkbox",
"@checkbox": {},
Expand All @@ -24,7 +24,7 @@
"@italic": {},
"link": "Link",
"@link": {},
"numberedList": "Numbered List",
"numberedList": "Numbered list",
"@numberedList": {},
"quote": "Quote",
"@quote": {},
Expand Down Expand Up @@ -92,12 +92,12 @@
"lightLightTint7": "Green",
"lightLightTint8": "Aqua",
"lightLightTint9": "Blue",
"textColor": "text color",
"addYourLink": "add your link",
"openLink": "open link",
"copyLink": "copy link",
"removeLink": "remove link",
"highlightColor": "highlight color",
"textColor": "Text color",
"addYourLink": "Add your link",
"openLink": "Open link",
"copyLink": "Copy link",
"removeLink": "Remove link",
"highlightColor": "Highlight color",
"clearHighlightColor": "clear highlight color",
"customColor": "custom color",
"hexValue": "hex value",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ class KeyboardServiceWidgetState extends State<KeyboardServiceWidget>
);

// clear the selection when the focus is lost.
if (!focusNode.hasFocus) {
editorState.selection = null;
}
// if (!focusNode.hasFocus) {
// editorState.selection = null;
// }
}
}
4 changes: 2 additions & 2 deletions lib/src/extensions/position_extension.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@ extension PositionExtension on Position {
);
offset = upwards
? rect.topRight.translate(0, -rect.height)
: rect.bottomRight.translate(0, rect.height);
: rect.centerRight.translate(0, rect.height);
} else {
final rect = rects.reduce(
(current, next) => current.top <= next.top ? current : next,
);
offset = upwards
? rect.topLeft.translate(0, -rect.height)
: rect.bottomLeft.translate(0, rect.height);
: rect.centerLeft.translate(0, rect.height);
}

return editorState.service.selectionService.getPositionInOffset(offset);
Expand Down
16 changes: 8 additions & 8 deletions lib/src/l10n/l10n.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.