You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Typically with undo/redo, when redoing something you would hold down mod + shift and then tap z multiple times to redo a bunch of changes in the editor. The problem is that the shift keydown bind (for moving the camera down) triggers immediately and his keyup event doesn't happen until you release all the keys. This results in the camera moving downward while you're redoing a bunch of changes.
I think something like KeyboardJS.releaseBind('shift') would be useful, as we could put it in the mod + shift + z binding to immediately fire the keyup event for the shift binding, effectively cancelling it.
I can't seem to find any workarounds in the mean time, do you have any thoughts on this?
By the way, KeyboardJS is the most robust library i've found so far for browser based editors and games. The others (mousetrap, hotkeys etc) are all missing essential features for this use-case, for example releasing keys on window blur, cmd keyup events etc. Kudos to you for building such a useful package.
The text was updated successfully, but these errors were encountered:
I'm building an 3D editor in the browser and attempting to use the following bindings:
w
a
s
d
to move the camera forward/back/strafe-left/strafe-rightshift
to move the camera downspace
to move the camera upmod + z
to undo changesshift + mod + z
to redo changesThe problem i'm facing is that moving the camera down (
shift
) and the redo function (shift + mod + z
) conflict with each other:Typically with undo/redo, when redoing something you would hold down
mod + shift
and then tapz
multiple times to redo a bunch of changes in the editor. The problem is that theshift
keydown bind (for moving the camera down) triggers immediately and his keyup event doesn't happen until you release all the keys. This results in the camera moving downward while you're redoing a bunch of changes.I think something like
KeyboardJS.releaseBind('shift')
would be useful, as we could put it in themod + shift + z
binding to immediately fire the keyup event for theshift
binding, effectively cancelling it.I can't seem to find any workarounds in the mean time, do you have any thoughts on this?
By the way, KeyboardJS is the most robust library i've found so far for browser based editors and games. The others (mousetrap, hotkeys etc) are all missing essential features for this use-case, for example releasing keys on window blur, cmd keyup events etc. Kudos to you for building such a useful package.
The text was updated successfully, but these errors were encountered: