@next2d/text 3.3.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next2d/text",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "Next2D Text Package",
|
|
5
5
|
"author": "Toshiyuki Ienaga<ienaga@next2d.app> (https://github.com/ienaga/)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"url": "git+https://github.com/Next2D/Player.git"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@next2d/display": "3.
|
|
28
|
-
"@next2d/geom": "3.
|
|
29
|
-
"@next2d/events": "3.
|
|
30
|
-
"@next2d/ui": "3.
|
|
31
|
-
"@next2d/cache": "3.
|
|
27
|
+
"@next2d/display": "3.4.0",
|
|
28
|
+
"@next2d/geom": "3.4.0",
|
|
29
|
+
"@next2d/events": "3.4.0",
|
|
30
|
+
"@next2d/ui": "3.4.0",
|
|
31
|
+
"@next2d/cache": "3.4.0"
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -2,7 +2,7 @@ import { FocusEvent } from "@next2d/events";
|
|
|
2
2
|
import { execute as textFieldApplyChangesService } from "../service/TextFieldApplyChangesService";
|
|
3
3
|
import { execute as textFieldBlinkingClearTimeoutService } from "../service/TextFieldBlinkingClearTimeoutService";
|
|
4
4
|
import { execute as textFieldBlinkingUseCase } from "./TextFieldBlinkingUseCase";
|
|
5
|
-
import { $textArea, $getBlinkingTimerId } from "../../TextUtil";
|
|
5
|
+
import { $textArea, $getBlinkingTimerId, $getSelectedTextField, $setSelectedTextField } from "../../TextUtil";
|
|
6
6
|
/**
|
|
7
7
|
* @description フォーカス
|
|
8
8
|
*
|
|
@@ -18,6 +18,7 @@ export const execute = (text_field, name) => {
|
|
|
18
18
|
}
|
|
19
19
|
$textArea.value = "";
|
|
20
20
|
if (text_field.focus) {
|
|
21
|
+
$setSelectedTextField(text_field);
|
|
21
22
|
setTimeout(() => {
|
|
22
23
|
$textArea.focus();
|
|
23
24
|
}, 300);
|
|
@@ -30,6 +31,9 @@ export const execute = (text_field, name) => {
|
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
else {
|
|
34
|
+
if ($getSelectedTextField() === text_field) {
|
|
35
|
+
$setSelectedTextField(null);
|
|
36
|
+
}
|
|
33
37
|
// params reset
|
|
34
38
|
text_field.focusIndex = -1;
|
|
35
39
|
text_field.selectIndex = -1;
|