Closed valonsodev closed 3 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
blocksuite | ❌ Failed (Inspect) | Jul 3, 2024 11:41am |
Add the label “merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge.
You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.
Hotkey case sensitivity is by design. You can press Ctrl + y
to redo.
Ctrl + y doesnt work when using the rich-text component alone, as in: document.createElement("rich-text")
And if this is by design, what is the point of having the component checking shiftKey when e.key == z?
if (e.key === 'z') {
if (e.shiftKey) {
//This will never run since if e.shiftKey == true then e.key would be uppercase Z
}
}
L-Sun
added this pull request to the Graphite merge queue.
As described here https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key#value.
This means that when using the rich-text component you are unable to redo since pressing
ctrl + shift + z
makese.key == 'Z'
. It also means that after pressingCapsLock
pressingctrl + z
to undo doesn't work sinceCapsLock
makes e.key be uppercase 'Z'.Simple fix by accepting either lowercase or uppercase
Z
.