fix reported bugs (#140)

* fix: slash menu doesn't work

* fix: #2586 Down arrow skips one line

* fix: #2587 Capitalize the first letters
This commit is contained in:
Lucas.Xu 2023-05-29 15:59:42 +08:00 • committed by GitHub
commit 0f9c453361
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 21 deletions

View file

@ -2,7 +2,7 @@
"@@locale": "en",
"bold": "Bold",
"@bold": {},
"bulletedList": "Bulleted List",
"bulletedList": "Bulleted list",
"@bulletedList": {},
"checkbox": "Checkbox",
"@checkbox": {},
@ -24,7 +24,7 @@
"@italic": {},
"link": "Link",
"@link": {},
"numberedList": "Numbered List",
"numberedList": "Numbered list",
"@numberedList": {},
"quote": "Quote",
"@quote": {},
@ -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",

View file

@ -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;
// }
}
}

View file

@ -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);

View file

@ -64,7 +64,7 @@ class AppFlowyEditorLocalizations {
/// `Bulleted List`
String get bulletedList {
return Intl.message(
'Bulleted List',
'Bulleted list',
name: 'bulletedList',
desc: '',
args: [],
@ -174,7 +174,7 @@ class AppFlowyEditorLocalizations {
/// `Numbered List`
String get numberedList {
return Intl.message(
'Numbered List',
'Numbered list',
name: 'numberedList',
desc: '',
args: [],
@ -604,7 +604,7 @@ class AppFlowyEditorLocalizations {
/// `text color`
String get textColor {
return Intl.message(
'text color',
'Text color',
name: 'textColor',
desc: '',
args: [],
@ -614,7 +614,7 @@ class AppFlowyEditorLocalizations {
/// `add your link`
String get addYourLink {
return Intl.message(
'add your link',
'Add your link',
name: 'addYourLink',
desc: '',
args: [],
@ -624,7 +624,7 @@ class AppFlowyEditorLocalizations {
/// `open link`
String get openLink {
return Intl.message(
'open link',
'Open link',
name: 'openLink',
desc: '',
args: [],
@ -634,7 +634,7 @@ class AppFlowyEditorLocalizations {
/// `copy link`
String get copyLink {
return Intl.message(
'copy link',
'Copy link',
name: 'copyLink',
desc: '',
args: [],
@ -644,7 +644,7 @@ class AppFlowyEditorLocalizations {
/// `remove link`
String get removeLink {
return Intl.message(
'remove link',
'Remove link',
name: 'removeLink',
desc: '',
args: [],
@ -654,7 +654,7 @@ class AppFlowyEditorLocalizations {
/// `highlight color`
String get highlightColor {
return Intl.message(
'highlight color',
'Highlight color',
name: 'highlightColor',
desc: '',
args: [],