mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-23 00:04:06 +00:00
Remove state check on continuous keydown (#1171)
* Remove state check on continuous keydown * nit
This commit is contained in:
@@ -131,7 +131,11 @@ export class ChangeTracker {
|
||||
let keyIgnored = false
|
||||
window.addEventListener(
|
||||
'keydown',
|
||||
(e) => {
|
||||
(e: KeyboardEvent) => {
|
||||
// Do not trigger on repeat events (Holding down a key)
|
||||
// This can happen when user is holding down "Space" to pan the canvas.
|
||||
if (e.repeat) return
|
||||
|
||||
const activeEl = document.activeElement
|
||||
requestAnimationFrame(async () => {
|
||||
let bindInputEl
|
||||
|
||||
Reference in New Issue
Block a user