mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 19:51:26 -05:00
Type: a keypad code with a claimed digit types its character, and the Windows hook types each code once
With the claimed-digit fix in craft-libs, a keypad digit types its Alt code also when the Type tool claims Alt with that digit: Alt with keypad 0233 types é while type is edited, and Alt with the top-row 2 still types ™. Every craft-libs rev is pinned to that fix's head, 12b6fa3c27. The pinned winit reports the character Windows composes for an Alt code as a key press after Alt's release, and egui types it. The Windows hook also typed the WM_CHAR that follows Alt's release, so each code typed its character twice. The hook now only takes the keypad digits out of the frame and tells the framework the Alt hold had digits typed in it. egui reports a keypad digit as the same logical key as the top-row digit, so the hook matches the keypad digits it takes out by their physical keys (Numpad0 to Numpad9, with NumLock on or off). A top-row Alt and digit in the same frame stays in the frame for the shortcuts.
This commit is contained in:
Generated
+86
-86
@@ -1231,7 +1231,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-automation",
|
||||
"craft-behavior",
|
||||
@@ -1272,7 +1272,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-affinity"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"crc32fast",
|
||||
"flate2",
|
||||
@@ -1283,7 +1283,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-appkit"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"block2 0.6.2",
|
||||
"objc2 0.6.5",
|
||||
@@ -1295,7 +1295,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-atomic"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"rustix 1.1.6",
|
||||
]
|
||||
@@ -1303,7 +1303,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-automation"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"base64 0.23.1",
|
||||
"craft-behavior",
|
||||
@@ -1328,7 +1328,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-behavior"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"accesskit",
|
||||
"bitflags 2.13.2",
|
||||
@@ -1346,7 +1346,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-browse"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-docpath",
|
||||
@@ -1364,7 +1364,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-cdr"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"crc32fast",
|
||||
"flate2",
|
||||
@@ -1373,7 +1373,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-cloud-ui"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"egui",
|
||||
]
|
||||
@@ -1381,7 +1381,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-cms"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"md-5",
|
||||
"rayon",
|
||||
@@ -1390,12 +1390,12 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-codepage"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
|
||||
[[package]]
|
||||
name = "craft-color-ui"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-cms",
|
||||
@@ -1415,7 +1415,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-control"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-control-protocol",
|
||||
"craft-platform",
|
||||
@@ -1426,7 +1426,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-control-protocol"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"getrandom 0.3.4",
|
||||
"serde_json",
|
||||
@@ -1436,7 +1436,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-dds"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"rayon",
|
||||
]
|
||||
@@ -1444,7 +1444,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-dialogs"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"block2 0.6.2",
|
||||
"craft-appkit",
|
||||
@@ -1470,7 +1470,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-doc"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"blake3",
|
||||
"craft-ecproj-format",
|
||||
@@ -1486,7 +1486,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-docpath"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"serde",
|
||||
]
|
||||
@@ -1494,7 +1494,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-draw"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-color-ui",
|
||||
@@ -1513,7 +1513,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-dxf"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-codepage",
|
||||
"encoding_rs",
|
||||
@@ -1525,7 +1525,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-ecproj-format"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"serde",
|
||||
"serde_json",
|
||||
@@ -1535,12 +1535,12 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-eps"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
|
||||
[[package]]
|
||||
name = "craft-font-catalog"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"fontique",
|
||||
"harfrust 0.13.3",
|
||||
@@ -1555,7 +1555,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-font-manager"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-font-catalog",
|
||||
@@ -1574,7 +1574,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-font-os-windows"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"windows-registry",
|
||||
"windows-sys 0.61.2",
|
||||
@@ -1583,7 +1583,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-font-store"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"cap-primitives",
|
||||
"craft-atomic",
|
||||
@@ -1606,12 +1606,12 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-fonts-build"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
|
||||
[[package]]
|
||||
name = "craft-gif"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"gif",
|
||||
]
|
||||
@@ -1619,7 +1619,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-gzip"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"flate2",
|
||||
]
|
||||
@@ -1627,7 +1627,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-host"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"bitflags 2.13.2",
|
||||
"craft-i18n",
|
||||
@@ -1640,7 +1640,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-i18n"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"brotli 9.1.3",
|
||||
"brotli-decompressor 6.3.2",
|
||||
@@ -1670,7 +1670,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-image-codecs"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-dds",
|
||||
"craft-jpeg",
|
||||
@@ -1697,7 +1697,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-imaging"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-color-ui",
|
||||
@@ -1715,7 +1715,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-jpeg"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"thiserror 2.0.21",
|
||||
]
|
||||
@@ -1723,7 +1723,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-jxl"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"brotli-decompressor 5.0.3",
|
||||
"jixel",
|
||||
@@ -1734,7 +1734,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-keymap"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-host",
|
||||
"craft-i18n",
|
||||
@@ -1749,7 +1749,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-layers"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-i18n",
|
||||
@@ -1763,7 +1763,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-menu"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-host",
|
||||
@@ -1781,7 +1781,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-metadata"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"brotli-decompressor 6.3.2",
|
||||
"chrono",
|
||||
@@ -1793,7 +1793,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-metafile"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"encoding_rs",
|
||||
"image",
|
||||
@@ -1804,7 +1804,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-mime"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"craft-codepage",
|
||||
@@ -1814,7 +1814,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-nightly"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"uds_windows",
|
||||
"winsafe",
|
||||
@@ -1823,7 +1823,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-pages"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-keymap",
|
||||
@@ -1839,7 +1839,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-pcraft-format"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"flate2",
|
||||
"serde",
|
||||
@@ -1850,7 +1850,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-pdf"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"hayro-interpret",
|
||||
"hayro-syntax",
|
||||
@@ -1862,7 +1862,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-platform"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"async-channel",
|
||||
"async-io",
|
||||
@@ -1895,7 +1895,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-plotter"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"kurbo 0.13.1",
|
||||
"thiserror 2.0.21",
|
||||
@@ -1904,7 +1904,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-print"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-host",
|
||||
@@ -1928,7 +1928,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-proof"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"log",
|
||||
"miniz_oxide 0.9.1",
|
||||
@@ -1939,7 +1939,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-ps"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-eps",
|
||||
"flate2",
|
||||
@@ -1953,7 +1953,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-psd"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"encoding_rs",
|
||||
"flate2",
|
||||
@@ -1964,7 +1964,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-quit"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"dispatch2",
|
||||
"egui",
|
||||
@@ -1977,7 +1977,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-review"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"base64 0.23.1",
|
||||
"craft-behavior",
|
||||
@@ -1996,7 +1996,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-settings"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-atomic",
|
||||
"craft-host",
|
||||
@@ -2013,7 +2013,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-stream-codecs"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"fax",
|
||||
"hayro-ccitt",
|
||||
@@ -2024,7 +2024,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-svg"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-image-codecs",
|
||||
"craft-xml",
|
||||
@@ -2045,7 +2045,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-table"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-keymap",
|
||||
@@ -2057,7 +2057,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-text"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-font-manager",
|
||||
@@ -2082,7 +2082,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-theme"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"bitflags 2.13.2",
|
||||
"craft-tracked",
|
||||
@@ -2097,7 +2097,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-theme-store"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-atomic",
|
||||
"craft-behavior",
|
||||
@@ -2112,7 +2112,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-tiff"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"serde",
|
||||
"thiserror 2.0.21",
|
||||
@@ -2122,7 +2122,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-time"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"serde",
|
||||
"thiserror 2.0.21",
|
||||
@@ -2131,7 +2131,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-timeline"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-keymap",
|
||||
@@ -2146,12 +2146,12 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-tracked"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
|
||||
[[package]]
|
||||
name = "craft-ui"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-cloud-ui",
|
||||
"craft-ui-canvas",
|
||||
@@ -2165,7 +2165,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-ui-canvas"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-i18n",
|
||||
@@ -2181,7 +2181,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-ui-contract"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"accesskit",
|
||||
"craft-behavior",
|
||||
@@ -2219,7 +2219,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-ui-macros"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"proc-macro-crate",
|
||||
"proc-macro2",
|
||||
@@ -2230,7 +2230,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-ui-panels"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-host",
|
||||
@@ -2248,7 +2248,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-ui-patterns"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-host",
|
||||
@@ -2269,7 +2269,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-ui-shell"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-host",
|
||||
@@ -2290,7 +2290,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-ui-widgets"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-host",
|
||||
@@ -2309,7 +2309,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-update"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"base64 0.22.1",
|
||||
"chrono",
|
||||
@@ -2341,7 +2341,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-vectorcraft-format"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"flate2",
|
||||
"serde",
|
||||
@@ -2352,7 +2352,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-wayland"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"raw-window-handle",
|
||||
"wayland-backend",
|
||||
@@ -2362,7 +2362,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-web-api"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"js-sys",
|
||||
"serde_json",
|
||||
@@ -2373,7 +2373,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-win32"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"winsafe",
|
||||
]
|
||||
@@ -2381,7 +2381,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-window"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"craft-appkit",
|
||||
"craft-atomic",
|
||||
@@ -2413,7 +2413,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-xml"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"quick-xml 0.41.0",
|
||||
"serde",
|
||||
@@ -3772,7 +3772,7 @@ checksum = "9f4d0e94ddd48749f06bbe4e5389fb9799a0c45bcaf00495042076ef05e3241a"
|
||||
[[package]]
|
||||
name = "hayro-cmap"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"brotli 8.0.4",
|
||||
"hayro-postscript",
|
||||
@@ -3781,7 +3781,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "hayro-interpret"
|
||||
version = "0.7.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"bitflags 2.13.2",
|
||||
"hayro-cmap",
|
||||
@@ -3799,7 +3799,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "hayro-jbig2"
|
||||
version = "0.3.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"fearless_simd",
|
||||
"hayro-ccitt",
|
||||
@@ -3817,12 +3817,12 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "hayro-postscript"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
|
||||
[[package]]
|
||||
name = "hayro-syntax"
|
||||
version = "0.7.2"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"flate2",
|
||||
"hayro-ccitt",
|
||||
@@ -4805,7 +4805,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "krilla"
|
||||
version = "0.8.2"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"base64 0.22.1",
|
||||
"bumpalo",
|
||||
@@ -4962,7 +4962,7 @@ checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4"
|
||||
[[package]]
|
||||
name = "linesweeper"
|
||||
version = "0.5.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=edee0ce3db1b863319fcae90ac71e927e4a6edb5#edee0ce3db1b863319fcae90ac71e927e4a6edb5"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671#12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671"
|
||||
dependencies = [
|
||||
"arrayvec",
|
||||
"kurbo 0.13.1",
|
||||
|
||||
+38
-38
@@ -10,51 +10,51 @@ license = "MIT OR Apache-2.0"
|
||||
rust-version = "1.95"
|
||||
|
||||
[workspace.dependencies]
|
||||
craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5", default-features = false, features = ["interpret", "write"] }
|
||||
craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
craft-proof = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671", default-features = false, features = ["interpret", "write"] }
|
||||
craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
craft-proof = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
# Language packs: the Craft apps' shared font store installs them (#4936).
|
||||
craft-font-store = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
craft-font-catalog = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
craft-font-store = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
craft-font-catalog = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
# The `.vectorcraft` envelope: its members, version, embedded images and the data after the JSON.
|
||||
craft-vectorcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
craft-gzip = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
craft-vectorcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
craft-gzip = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
# `.pcraft` documents: their manifest, full-size composite, preview, layer pixels and ICC profile.
|
||||
craft-doc = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5", features = ["pcraft-pixels"] }
|
||||
craft-doc = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671", features = ["pcraft-pixels"] }
|
||||
# Native Affinity documents (craft-libs#914).
|
||||
craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
# Bounded CDR (v1-v27) and CMX (32-bit) reader (craft-libs#778).
|
||||
craft-cdr = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
craft-cdr = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
# SVG parsing, limits, SVGZ and writer (craft-libs#778).
|
||||
craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5", features = ["tree"] }
|
||||
craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671", features = ["tree"] }
|
||||
craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
# EPS container, previews, ASCII85 and DSC comments (craft-libs#778).
|
||||
craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
# DXF tags, reader and writer (craft-libs#778, #926, #927).
|
||||
craft-plotter = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
craft-plotter = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
# WMF, EMF and EMF+ reader (craft-libs#778).
|
||||
craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
craft-ps = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5", default-features = false, features = ["read", "write"] }
|
||||
craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
craft-stream-codecs = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
craft-codepage = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
craft-ps = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671", default-features = false, features = ["read", "write"] }
|
||||
craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
craft-stream-codecs = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
craft-codepage = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
# The framework facade (`craft::ui`, `craft::settings`, `craft::platform`, ...). No default features: each crate names
|
||||
# the members it imports.
|
||||
craft = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
craft = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
# Below the egui layer, so not through the facade: the colour harmony rules and their settings (craft-color-ui
|
||||
# without its `ui` feature), the colour type they work in, and the craft-fonts tables the text crate's build writes.
|
||||
craft-color-ui = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
craft-theme = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
craft-color-ui = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
craft-theme = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
# Nightly profile isolation, launch protocol, and security fence.
|
||||
craft-nightly = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
craft-nightly = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
# internal
|
||||
vectorcraft-geom = { path = "crates/geom" }
|
||||
vectorcraft-color = { path = "crates/color" }
|
||||
@@ -194,13 +194,13 @@ lto = "thin"
|
||||
codegen-units = 1
|
||||
|
||||
[patch.crates-io]
|
||||
hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
krilla = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5" }
|
||||
hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
krilla = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671" }
|
||||
ecolor = { git = "https://github.com/storytold/egui.git", rev = "07c20531f89717e461c0f387dd1f9649553f9321" }
|
||||
emath = { git = "https://github.com/storytold/egui.git", rev = "07c20531f89717e461c0f387dd1f9649553f9321" }
|
||||
epaint = { git = "https://github.com/storytold/egui.git", rev = "07c20531f89717e461c0f387dd1f9649553f9321" }
|
||||
|
||||
@@ -28,7 +28,7 @@ egui_extras = { workspace = true }
|
||||
# `wgpu` pulls egui-wgpu's defaults: WebGPU plus the WebGL2 fallback.
|
||||
eframe = { workspace = true, features = ["default_fonts", "wgpu", "accesskit"] }
|
||||
# The page command API (storytold/craft-libs#413): the request plumbing behind window.vectorcraft.
|
||||
craft-web-api = { git = "https://github.com/storytold/craft-libs", rev = "edee0ce3db1b863319fcae90ac71e927e4a6edb5", version = "0.1.0" }
|
||||
craft-web-api = { git = "https://github.com/storytold/craft-libs", rev = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671", version = "0.1.0" }
|
||||
|
||||
wasm-bindgen = "0.2"
|
||||
serde_json = { workspace = true }
|
||||
|
||||
@@ -44,7 +44,7 @@ impl eframe::App for App {
|
||||
if let Some(window_frame) = self.window_frame.as_mut() {
|
||||
window_frame();
|
||||
}
|
||||
// The characters Alt + keypad codes typed (#5108).
|
||||
// The keypad digits of Alt + keypad codes (#5108).
|
||||
#[cfg(windows)]
|
||||
super::windows_alt_codes::raw_input_hook(ctx, raw);
|
||||
// Symbol-font characters a keyboard tool typed (NHM Writer legacy Tamil).
|
||||
|
||||
@@ -722,14 +722,14 @@ fn main() -> std::process::ExitCode {
|
||||
// With Windows Ink, winit reports a pen as a touch and drops its barrel button and which end
|
||||
// is down; the message hook notes each pointer contact and whether it starts with the barrel
|
||||
// button held, and writes the pen's end into the pen feed (`windows_stylus`). It also notes the
|
||||
// characters Alt + keypad codes type (`windows_alt_codes`).
|
||||
// keypad digits typed with Alt held (`windows_alt_codes`).
|
||||
#[cfg(windows)]
|
||||
let options = {
|
||||
use winit::platform::windows::EventLoopBuilderExtWindows as _;
|
||||
let mut options = options;
|
||||
options.event_loop_builder = Some(Box::new(|builder| {
|
||||
builder.with_msg_hook(|msg| {
|
||||
// Alt + keypad codes (#5108), which winit drops; neither hook consumes a message.
|
||||
// The keypad digits of Alt + keypad codes (#5108); neither hook consumes a message.
|
||||
windows_alt_codes::msg_hook(msg);
|
||||
windows_stylus::msg_hook(msg)
|
||||
});
|
||||
|
||||
@@ -4,16 +4,16 @@
|
||||
//! Windows does the work: when Alt comes up after keypad digits, `TranslateMessage` posts a
|
||||
//! `WM_CHAR` holding the character the code stands for (in the system's ANSI code page for a code
|
||||
//! with a leading 0, else its OEM code page), the convention every Windows text field follows
|
||||
//! (<https://learn.microsoft.com/en-us/windows/win32/inputdev/about-keyboard-input>). winit
|
||||
//! 0.30 reads a `WM_CHAR` only as part of the key press before it, so it drops this one, which
|
||||
//! follows a key release, and egui never sees the text. winit's message hook ([`msg_hook`]) sees
|
||||
//! the message before winit handles it: [`AltCodes`] notes keypad digits typed with Alt held, takes
|
||||
//! the character that follows Alt's release, and [`raw_input_hook`] hands it to the frame as typed
|
||||
//! text, so the Type tool (or a panel's text field) types it like any other character, in the
|
||||
//! same undo step as the typing round it. The keypad digits themselves are taken out of the frame,
|
||||
//! so they don't run a shortcut bound to Alt and a digit, and [`raw_input_hook`] tells the framework
|
||||
//! that the Alt hold had digits typed in it (`alt_code_digits_taken`), so it does not read Alt's
|
||||
//! release as a lone Alt (an alert in a field that holds drafts, or the menu bar taking the focus).
|
||||
//! (<https://learn.microsoft.com/en-us/windows/win32/inputdev/about-keyboard-input>). winit reports
|
||||
//! that character as a key press of its own after Alt's release, and egui hands it to the frame as
|
||||
//! typed text, so the Type tool (or a panel's text field) types it like any other character, in the
|
||||
//! same undo step as the typing round it. winit's message hook ([`msg_hook`]) sees each keyboard
|
||||
//! message before winit handles it: [`AltCodes`] notes the keypad digits typed with Alt held, and
|
||||
//! [`raw_input_hook`] takes them out of the frame, so they don't run a shortcut bound to Alt and a
|
||||
//! digit and the framework does not compose the same code a second time. [`raw_input_hook`] also
|
||||
//! tells the framework that the Alt hold had digits typed in it (`alt_code_digits_taken`), so it
|
||||
//! does not read Alt's release as a lone Alt (an alert in a field that holds drafts, or the menu bar
|
||||
//! taking the focus).
|
||||
//!
|
||||
//! With NumLock off the keypad keys arrive as Insert, End, Down, Page Down, Left, Clear, Right,
|
||||
//! Home, Up and Page Up, and Windows still composes the code from them. They are told from the
|
||||
@@ -34,8 +34,6 @@ use std::cell::RefCell;
|
||||
use egui::{Event, Key};
|
||||
|
||||
const WM_KEYDOWN: u32 = 0x0100;
|
||||
const WM_KEYUP: u32 = 0x0101;
|
||||
const WM_CHAR: u32 = 0x0102;
|
||||
const WM_SYSKEYDOWN: u32 = 0x0104;
|
||||
const WM_SYSKEYUP: u32 = 0x0105;
|
||||
const WM_SYSCHAR: u32 = 0x0106;
|
||||
@@ -45,33 +43,21 @@ const VK_NUMPAD9: usize = 0x69;
|
||||
/// The keypad's virtual keys with NumLock off, by digit (`winuser.h`): `VK_INSERT`, `VK_END`,
|
||||
/// `VK_DOWN`, `VK_NEXT`, `VK_LEFT`, `VK_CLEAR`, `VK_RIGHT`, `VK_HOME`, `VK_UP` and `VK_PRIOR`.
|
||||
const NUMLOCK_OFF_KEYS: [usize; 10] = [0x2D, 0x23, 0x28, 0x22, 0x25, 0x0C, 0x27, 0x24, 0x26, 0x21];
|
||||
/// The keys egui reports for the keypad with NumLock off, by digit (Clear has no egui key, so it
|
||||
/// comes as the top-row digit key, `Num5`).
|
||||
const NUMLOCK_OFF_EGUI_KEYS: [Key; 10] =
|
||||
[Key::Insert, Key::End, Key::ArrowDown, Key::PageDown, Key::ArrowLeft, Key::Num5, Key::ArrowRight, Key::Home, Key::ArrowUp, Key::PageUp];
|
||||
const DIGIT_KEYS: [Key; 10] = [Key::Num0, Key::Num1, Key::Num2, Key::Num3, Key::Num4, Key::Num5, Key::Num6, Key::Num7, Key::Num8, Key::Num9];
|
||||
/// The physical keys egui reports for the keypad's keys, by digit, with NumLock on or off.
|
||||
const KEYPAD_KEYS: [Key; 10] =
|
||||
[Key::Numpad0, Key::Numpad1, Key::Numpad2, Key::Numpad3, Key::Numpad4, Key::Numpad5, Key::Numpad6, Key::Numpad7, Key::Numpad8, Key::Numpad9];
|
||||
/// Bit 24 of a key message's `lParam`: an extended key, such as the navigation keys beside the
|
||||
/// keypad (the keypad's own keys clear it).
|
||||
const EXTENDED_KEY: isize = 1 << 24;
|
||||
/// `VK_MENU`, `VK_LMENU` and `VK_RMENU`: Alt.
|
||||
const ALT_KEYS: [usize; 3] = [0x12, 0xA4, 0xA5];
|
||||
|
||||
thread_local! {
|
||||
/// The UI thread's sequence: [`msg_hook`] and [`raw_input_hook`] both run on it.
|
||||
static CODES: RefCell<AltCodes> = RefCell::new(AltCodes::default());
|
||||
}
|
||||
|
||||
/// Where an Alt + keypad code stands, from the keyboard messages of the thread's queue.
|
||||
/// The keypad digits of Alt + keypad codes, from the keyboard messages of the thread's queue.
|
||||
#[derive(Default)]
|
||||
struct AltCodes {
|
||||
/// Keypad digits typed while Alt has been held.
|
||||
digits: usize,
|
||||
/// Alt came up after keypad digits: the next character message is the code's character.
|
||||
armed: bool,
|
||||
/// A high surrogate waiting for its low half.
|
||||
high: Option<u16>,
|
||||
/// Characters the codes typed, for the next frame.
|
||||
typed: String,
|
||||
/// The digits of the keypad presses and releases with Alt held since the last frame, which
|
||||
/// egui reports as Alt and a digit (or, with NumLock off, Alt and a navigation key): taken
|
||||
/// out of the frame.
|
||||
@@ -94,81 +80,48 @@ impl AltCodes {
|
||||
/// Note a keyboard message `message` with `wparam` (the virtual-key code, or a UTF-16 unit)
|
||||
/// and `lparam` (its flags).
|
||||
fn message(&mut self, message: u32, wparam: usize, lparam: isize) {
|
||||
let keypad = match message {
|
||||
WM_SYSKEYDOWN | WM_SYSKEYUP => keypad_digit(wparam, lparam),
|
||||
_ => None,
|
||||
};
|
||||
if let Some(d) = keypad {
|
||||
// Windows sends a key pressed with Alt held as a system key.
|
||||
if message == WM_SYSKEYDOWN {
|
||||
self.digits += 1;
|
||||
self.armed = false;
|
||||
}
|
||||
// Windows sends a key pressed with Alt held as a system key.
|
||||
if matches!(message, WM_SYSKEYDOWN | WM_SYSKEYUP)
|
||||
&& let Some(d) = keypad_digit(wparam, lparam)
|
||||
{
|
||||
self.keypad_events.push(d);
|
||||
return;
|
||||
}
|
||||
match message {
|
||||
WM_KEYDOWN | WM_SYSKEYDOWN if ALT_KEYS.contains(&wparam) => {}
|
||||
// Any other key ends the sequence and keeps its own meaning.
|
||||
WM_KEYDOWN | WM_SYSKEYDOWN => self.reset(),
|
||||
WM_KEYUP | WM_SYSKEYUP if ALT_KEYS.contains(&wparam) => {
|
||||
self.armed = self.digits > 0;
|
||||
self.digits = 0;
|
||||
}
|
||||
WM_CHAR | WM_SYSCHAR if self.armed => {
|
||||
let unit = (wparam & 0xffff) as u16;
|
||||
if (0xd800..0xdc00).contains(&unit) {
|
||||
self.high = Some(unit);
|
||||
return;
|
||||
}
|
||||
let units: Vec<u16> = self.high.take().into_iter().chain([unit]).collect();
|
||||
self.typed.extend(char::decode_utf16(units).filter_map(Result::ok).filter(|c| !c.is_control()));
|
||||
self.armed = false;
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
||||
fn reset(&mut self) {
|
||||
self.digits = 0;
|
||||
self.armed = false;
|
||||
self.high = None;
|
||||
}
|
||||
|
||||
/// Hand the frame `events` the characters typed since the last frame, as typed text, and take
|
||||
/// out the keypad digits typed with Alt held. Returns whether it took any out.
|
||||
/// Take the keypad digits typed with Alt held since the last frame out of the frame `events`.
|
||||
/// The characters the codes type stay in `events` as winit reported them. Returns whether it
|
||||
/// took any digit out.
|
||||
fn drain(&mut self, events: &mut Vec<Event>) -> bool {
|
||||
let mut keypad = std::mem::take(&mut self.keypad_events);
|
||||
if keypad.is_empty() {
|
||||
return false;
|
||||
}
|
||||
let before = events.len();
|
||||
if !keypad.is_empty() {
|
||||
events.retain(|e| {
|
||||
let Event::Key { key, modifiers, .. } = e else {
|
||||
return true;
|
||||
};
|
||||
if !modifiers.alt {
|
||||
return true;
|
||||
events.retain(|e| {
|
||||
let Event::Key { physical_key, modifiers, .. } = e else {
|
||||
return true;
|
||||
};
|
||||
if !modifiers.alt {
|
||||
return true;
|
||||
}
|
||||
// The first keypad key still to take out on the physical key `physical_key`. egui reports a
|
||||
// keypad digit as the same logical key as the top-row digit, so a top-row Alt and digit in
|
||||
// the same frame is left in the frame.
|
||||
let on_key = |d: &usize| KEYPAD_KEYS.get(*d).is_some_and(|k| *physical_key == Some(*k));
|
||||
match keypad.iter().position(on_key) {
|
||||
Some(i) => {
|
||||
keypad.remove(i);
|
||||
false
|
||||
}
|
||||
// The first keypad key still to take out that egui reports as `key`.
|
||||
let stands_for = |d: &usize| DIGIT_KEYS.get(*d) == Some(key) || NUMLOCK_OFF_EGUI_KEYS.get(*d) == Some(key);
|
||||
match keypad.iter().position(stands_for) {
|
||||
Some(i) => {
|
||||
keypad.remove(i);
|
||||
false
|
||||
}
|
||||
None => true,
|
||||
}
|
||||
});
|
||||
}
|
||||
let taken = events.len() < before;
|
||||
if !self.typed.is_empty() {
|
||||
events.push(Event::Text(std::mem::take(&mut self.typed)));
|
||||
}
|
||||
taken
|
||||
None => true,
|
||||
}
|
||||
});
|
||||
events.len() < before
|
||||
}
|
||||
}
|
||||
|
||||
/// winit's message hook for the keyboard: notes Alt + keypad codes and the characters they type,
|
||||
/// and hands each message to `windows_symbol_chars`. It never consumes the message.
|
||||
/// winit's message hook for the keyboard: notes the keypad digits typed with Alt held, and hands
|
||||
/// each message to `windows_symbol_chars`. It never consumes the message.
|
||||
#[cfg(windows)]
|
||||
#[allow(unsafe_code)]
|
||||
pub fn msg_hook(msg: *const std::ffi::c_void) {
|
||||
@@ -189,9 +142,9 @@ pub fn msg_hook(msg: *const std::ffi::c_void) {
|
||||
}
|
||||
}
|
||||
|
||||
/// Before egui reads the main window's frame: the characters Alt + keypad codes typed, as text.
|
||||
/// When it takes keypad digits out of the frame, it tells the framework in `ctx` that the Alt hold
|
||||
/// had digits typed in it.
|
||||
/// Before egui reads the main window's frame: takes the keypad digits typed with Alt held out of
|
||||
/// it. When it takes any out, it tells the framework in `ctx` that the Alt hold had digits typed in
|
||||
/// it.
|
||||
pub fn raw_input_hook(ctx: &egui::Context, raw: &mut egui::RawInput) {
|
||||
let taken = CODES.with(|c| c.try_borrow_mut().is_ok_and(|mut c| c.drain(&mut raw.events)));
|
||||
if taken {
|
||||
@@ -203,6 +156,8 @@ pub fn raw_input_hook(ctx: &egui::Context, raw: &mut egui::RawInput) {
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
const WM_KEYUP: u32 = 0x0101;
|
||||
const WM_CHAR: u32 = 0x0102;
|
||||
const ALT: usize = 0x12;
|
||||
|
||||
/// Alt held, keypad digits `code`, Alt released, and the character Windows then posts.
|
||||
@@ -217,65 +172,79 @@ mod tests {
|
||||
c.message(WM_CHAR, usize::from(posted), 0);
|
||||
}
|
||||
|
||||
/// The top-row digit keys, by digit: the logical keys egui reports for the keypad digits with
|
||||
/// NumLock on.
|
||||
const DIGIT_KEYS: [Key; 10] = [Key::Num0, Key::Num1, Key::Num2, Key::Num3, Key::Num4, Key::Num5, Key::Num6, Key::Num7, Key::Num8, Key::Num9];
|
||||
|
||||
/// A key that is not on the keypad: egui reports `key` as both its logical and its physical key.
|
||||
fn key(key: Key, alt: bool, pressed: bool) -> Event {
|
||||
let modifiers = egui::Modifiers { alt, ..Default::default() };
|
||||
Event::Key { key, physical_key: Some(key), pressed, repeat: false, modifiers }
|
||||
}
|
||||
|
||||
/// The keypad's key for digit `d`, which egui reports as the logical key `key`.
|
||||
fn keypad_key(key: Key, d: usize, alt: bool, pressed: bool) -> Event {
|
||||
let modifiers = egui::Modifiers { alt, ..Default::default() };
|
||||
Event::Key { key, physical_key: Some(KEYPAD_KEYS[d]), pressed, repeat: false, modifiers }
|
||||
}
|
||||
|
||||
/// The keypad digit `d` with NumLock on.
|
||||
fn keypad(d: usize, alt: bool, pressed: bool) -> Event {
|
||||
keypad_key(DIGIT_KEYS[d], d, alt, pressed)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn an_alt_code_types_its_character_when_alt_comes_up() {
|
||||
fn an_alt_codes_keypad_digits_are_taken_out_and_its_character_stays() {
|
||||
let mut c = AltCodes::default();
|
||||
alt_code(&mut c, "0176", 0xB0);
|
||||
alt_code(&mut c, "0151", 0x2014);
|
||||
let mut events = vec![key(Key::Num0, true, true), key(Key::Num0, true, false), key(Key::Num1, false, true)];
|
||||
c.drain(&mut events);
|
||||
// The characters as winit reports them after each Alt release.
|
||||
let mut events =
|
||||
vec![keypad(0, true, true), keypad(0, true, false), keypad(1, false, true), Event::Text("°".into()), Event::Text("—".into())];
|
||||
assert!(c.drain(&mut events));
|
||||
// The keypad digits typed with Alt are gone (eight presses and eight releases, two here);
|
||||
// the digit typed without Alt stays, and the characters follow.
|
||||
assert_eq!(events, vec![key(Key::Num1, false, true), Event::Text("°—".into())]);
|
||||
let mut events = vec![key(Key::Num0, true, true)];
|
||||
c.drain(&mut events);
|
||||
// the digit typed without Alt and the characters stay, each once.
|
||||
assert_eq!(events, vec![keypad(1, false, true), Event::Text("°".into()), Event::Text("—".into())]);
|
||||
let mut events = vec![keypad(0, true, true)];
|
||||
assert!(!c.drain(&mut events));
|
||||
assert_eq!(events.len(), 1, "counts don't carry over to a later frame");
|
||||
}
|
||||
|
||||
/// egui reports keypad 2 and the top-row 2 as the same logical key. When both come with Alt in
|
||||
/// one frame, the keypad 2 is taken out and the top-row 2 stays for the shortcuts, whichever
|
||||
/// comes first.
|
||||
#[test]
|
||||
fn a_character_without_a_code_before_it_is_left_to_winit() {
|
||||
let mut c = AltCodes::default();
|
||||
// A plain key press's character (winit types it), and Alt pressed and released alone.
|
||||
c.message(WM_KEYDOWN, 0x41, 0);
|
||||
c.message(WM_CHAR, usize::from(b'a'), 0);
|
||||
c.message(WM_SYSKEYDOWN, ALT, 0);
|
||||
c.message(WM_KEYUP, ALT, 0);
|
||||
c.message(WM_CHAR, usize::from(b'b'), 0);
|
||||
let mut events = vec![];
|
||||
c.drain(&mut events);
|
||||
assert!(events.is_empty(), "{events:?}");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn another_key_while_alt_is_held_cancels_the_code() {
|
||||
fn a_top_row_alt_digit_in_the_same_frame_stays() {
|
||||
let mut c = AltCodes::default();
|
||||
c.message(WM_SYSKEYDOWN, ALT, 0);
|
||||
c.message(WM_SYSKEYDOWN, VK_NUMPAD0 + 1, 0);
|
||||
// Alt+F: a shortcut, not a code.
|
||||
c.message(WM_SYSKEYDOWN, 0x46, 0);
|
||||
c.message(WM_KEYUP, ALT, 0);
|
||||
c.message(WM_CHAR, 0x41, 0);
|
||||
let mut events = vec![];
|
||||
c.drain(&mut events);
|
||||
assert!(!events.iter().any(|e| matches!(e, Event::Text(_))), "{events:?}");
|
||||
c.message(WM_SYSKEYDOWN, VK_NUMPAD0 + 2, 0);
|
||||
let mut events = vec![key(Key::Num2, true, true), keypad(2, true, true)];
|
||||
assert!(c.drain(&mut events));
|
||||
assert_eq!(events, vec![key(Key::Num2, true, true)]);
|
||||
|
||||
c.message(WM_SYSKEYUP, VK_NUMPAD0 + 2, 0);
|
||||
let mut events = vec![keypad(2, true, false), key(Key::Num2, true, false)];
|
||||
assert!(c.drain(&mut events));
|
||||
assert_eq!(events, vec![key(Key::Num2, true, false)]);
|
||||
}
|
||||
|
||||
/// winit reports the character a code types, so the hook adds none of its own: a code's
|
||||
/// `WM_CHAR`, the two halves of a code above the basic plane, and a character without a code
|
||||
/// before it give the frame no text.
|
||||
#[test]
|
||||
fn a_code_above_the_basic_plane_arrives_as_two_halves() {
|
||||
fn the_hook_types_no_character_of_its_own() {
|
||||
let mut c = AltCodes::default();
|
||||
alt_code(&mut c, "0176", 0xB0);
|
||||
c.message(WM_SYSKEYDOWN, ALT, 0);
|
||||
c.message(WM_SYSKEYDOWN, VK_NUMPAD0 + 1, 0);
|
||||
c.message(WM_KEYUP, ALT, 0);
|
||||
c.message(WM_CHAR, 0xD83D, 0);
|
||||
c.message(WM_CHAR, 0xDE00, 0);
|
||||
c.message(WM_KEYDOWN, 0x41, 0);
|
||||
c.message(WM_CHAR, usize::from(b'a'), 0);
|
||||
let mut events = vec![];
|
||||
c.drain(&mut events);
|
||||
assert_eq!(events, vec![Event::Text("😀".into())]);
|
||||
assert!(events.is_empty(), "{events:?}");
|
||||
}
|
||||
|
||||
/// Alt held, keypad digits `code` with NumLock off (keypad Insert, End, …, flags without the
|
||||
@@ -296,15 +265,16 @@ mod tests {
|
||||
let mut c = AltCodes::default();
|
||||
alt_code_numlock_off(&mut c, "0176", 0xB0);
|
||||
// What egui reports for keypad 0, 1, 7 and 6 with NumLock off and Alt held, a press and a
|
||||
// release each, then a plain Home typed after Alt came up.
|
||||
// release each, then the character winit reports and a plain Home typed after Alt came up.
|
||||
let mut events = vec![];
|
||||
for k in [Key::Insert, Key::End, Key::Home, Key::ArrowRight] {
|
||||
events.push(key(k, true, true));
|
||||
events.push(key(k, true, false));
|
||||
for (k, d) in [(Key::Insert, 0), (Key::End, 1), (Key::Home, 7), (Key::ArrowRight, 6)] {
|
||||
events.push(keypad_key(k, d, true, true));
|
||||
events.push(keypad_key(k, d, true, false));
|
||||
}
|
||||
events.push(Event::Text("°".into()));
|
||||
events.push(key(Key::Home, false, true));
|
||||
c.drain(&mut events);
|
||||
assert_eq!(events, vec![key(Key::Home, false, true), Event::Text("°".into())]);
|
||||
assert_eq!(events, vec![Event::Text("°".into()), key(Key::Home, false, true)]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -314,14 +284,20 @@ mod tests {
|
||||
// 0234 uses Insert, Down, Page Down and Left.
|
||||
alt_code_numlock_off(&mut c, "0151", 0x2014);
|
||||
alt_code_numlock_off(&mut c, "0234", 0xEA);
|
||||
let mut events =
|
||||
vec![key(Key::Num5, true, true), key(Key::ArrowDown, true, true), key(Key::PageDown, true, true), key(Key::ArrowLeft, true, true)];
|
||||
let mut events = vec![
|
||||
keypad_key(Key::Num5, 5, true, true),
|
||||
Event::Text("—".into()),
|
||||
keypad_key(Key::ArrowDown, 2, true, true),
|
||||
keypad_key(Key::PageDown, 3, true, true),
|
||||
keypad_key(Key::ArrowLeft, 4, true, true),
|
||||
Event::Text("ê".into()),
|
||||
];
|
||||
c.drain(&mut events);
|
||||
assert_eq!(events, vec![Event::Text("—ê".into())]);
|
||||
assert_eq!(events, vec![Event::Text("—".into()), Event::Text("ê".into())]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn the_separate_navigation_keys_still_move_the_caret_and_cancel_the_code() {
|
||||
fn the_separate_navigation_keys_still_move_the_caret() {
|
||||
let mut c = AltCodes::default();
|
||||
c.message(WM_SYSKEYDOWN, ALT, 0);
|
||||
c.message(WM_SYSKEYDOWN, NUMLOCK_OFF_KEYS[1], 0);
|
||||
@@ -330,16 +306,12 @@ mod tests {
|
||||
c.message(WM_SYSKEYDOWN, NUMLOCK_OFF_KEYS[7], EXTENDED_KEY);
|
||||
c.message(WM_SYSKEYUP, NUMLOCK_OFF_KEYS[7], EXTENDED_KEY);
|
||||
c.message(WM_KEYUP, ALT, 0);
|
||||
c.message(WM_CHAR, 0x41, 0);
|
||||
let mut events = vec![key(Key::End, true, true), key(Key::End, true, false), key(Key::Home, true, true), key(Key::Home, true, false)];
|
||||
let mut events =
|
||||
vec![keypad_key(Key::End, 1, true, true), keypad_key(Key::End, 1, true, false), key(Key::Home, true, true), key(Key::Home, true, false)];
|
||||
c.drain(&mut events);
|
||||
assert_eq!(events, vec![key(Key::Home, true, true), key(Key::Home, true, false)]);
|
||||
}
|
||||
|
||||
/// The physical keys egui reports for the keypad digits, by digit.
|
||||
const KEYPAD_KEYS: [Key; 10] =
|
||||
[Key::Numpad0, Key::Numpad1, Key::Numpad2, Key::Numpad3, Key::Numpad4, Key::Numpad5, Key::Numpad6, Key::Numpad7, Key::Numpad8, Key::Numpad9];
|
||||
|
||||
/// One frame of the framework's test window: Windows' key `messages` reach [`msg_hook`]'s
|
||||
/// state, then `events` pass through [`raw_input_hook`] before the frame reads them.
|
||||
fn hooked_frame(frames: &mut craft::ui::testing::Frames, show: &mut dyn FnMut(&mut egui::Ui), messages: &[(u32, usize)], events: Vec<Event>) {
|
||||
@@ -354,9 +326,9 @@ mod tests {
|
||||
frames.frame(raw.events, &mut *show);
|
||||
}
|
||||
|
||||
/// After a code the hook composed, the framework does not read Alt's release as a lone Alt: a
|
||||
/// tool that claims the Alt tap gets none, and the code's character is typed. A lone Alt after
|
||||
/// it is a tap again.
|
||||
/// After a code Windows composed, the framework does not read Alt's release as a lone Alt: a
|
||||
/// tool that claims the Alt tap gets none, and the code's character, which winit reports after
|
||||
/// the release, is typed once. A lone Alt after it is a tap again.
|
||||
#[test]
|
||||
fn the_alt_release_after_a_composed_code_is_no_lone_alt() {
|
||||
use craft::ui::runtime::env::{AltCodeKeys, RootEnv};
|
||||
@@ -399,7 +371,8 @@ mod tests {
|
||||
let vk = VK_NUMPAD0 + d;
|
||||
hooked_frame(&mut frames, &mut show, &[(WM_SYSKEYDOWN, vk), (WM_SYSKEYUP, vk)], vec![keypad(d, true), keypad(d, false)]);
|
||||
}
|
||||
hooked_frame(&mut frames, &mut show, &[(WM_KEYUP, ALT), (WM_CHAR, 0xE9)], vec![alt(false)]);
|
||||
// Alt's release, then the character winit reports for the `WM_CHAR` that follows it.
|
||||
hooked_frame(&mut frames, &mut show, &[(WM_KEYUP, ALT), (WM_CHAR, 0xE9)], vec![alt(false), Event::Text("é".into())]);
|
||||
frames.frame(vec![], &mut show);
|
||||
assert_eq!((taps.get(), text.take()), (0, "é".to_owned()), "the code's Alt release is no Alt tap, and its character is typed once");
|
||||
|
||||
|
||||
@@ -825,8 +825,9 @@ pub(crate) fn root_env(prefs: &vectorcraft_engine::Prefs, native_ppp: f32, print
|
||||
// A held key repeats its command (Cmd+= keeps zooming in).
|
||||
root.shortcuts_repeat = true;
|
||||
// On Windows and Linux only the keypad digits type an Alt code, and Alt with a top-row digit stays a key press for
|
||||
// the shortcuts (macOS has no Alt codes). On Windows the app reads keypad codes from the system's key messages
|
||||
// (the app's `windows_alt_codes`).
|
||||
// the shortcuts (macOS has no Alt codes). A keypad digit types its code also when the Type tool claims Alt with that
|
||||
// digit. On Windows the system composes keypad codes, and the app takes their digits out of the frame (the app's
|
||||
// `windows_alt_codes`).
|
||||
root.alt_code_keys = AltCodeKeys::Keypad;
|
||||
root
|
||||
}
|
||||
|
||||
@@ -1032,6 +1032,25 @@ fn alt_and_a_top_row_digit_runs_its_shortcut() {
|
||||
}
|
||||
}
|
||||
|
||||
/// While type is edited on Windows and Linux, Alt with keypad 0233 types `é` even though the Type tool claims Alt+2 for
|
||||
/// `™`: the keypad 2 is a digit of the code and types no `™`. Alt with the top-row 2 still types `™`.
|
||||
#[test]
|
||||
fn a_keypad_code_with_a_claimed_digit_types_its_character() {
|
||||
for os in [craft::host::target::Os::Windows, craft::host::target::Os::Linux] {
|
||||
for (digits, keypad, expected) in [(&[0, 2, 3, 3][..], true, "Hi\u{00E9}"), (&[2][..], false, "Hi\u{2122}")] {
|
||||
let (mut app, id) = editing_hi();
|
||||
let ctx = crate::testing::ui_context();
|
||||
craft::ui::testing::windows::set_os(&ctx, os);
|
||||
idle(&mut app, &ctx, 2);
|
||||
for events in alt_digits(digits, keypad) {
|
||||
key_frame(&mut app, &ctx, events);
|
||||
}
|
||||
idle(&mut app, &ctx, 1);
|
||||
assert_eq!(text_and_layers(&mut app, id).0, expected, "{os:?}, keypad {keypad}, digits {digits:?}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Alt+P chooses the Quick Pen and is no Alt tap; a lone Alt tap then switches its action, and Alt
|
||||
/// let go after a click does not.
|
||||
#[test]
|
||||
|
||||
@@ -5,7 +5,7 @@ use std::process::Command;
|
||||
|
||||
use serde_json::Value;
|
||||
|
||||
const REV: &str = "edee0ce3db1b863319fcae90ac71e927e4a6edb5";
|
||||
const REV: &str = "12b6fa3c2786b25d702b5d9c57a6a8eb91ebe671";
|
||||
const PACKAGES: &[(&str, &str, &str)] = &[
|
||||
("craft-pdf", "0.1.0", REV),
|
||||
("krilla", "0.8.2", REV),
|
||||
|
||||
Reference in New Issue
Block a user