Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by alexandre

EDIT
That was me. Never mind.


<calm>
Binding input to ig.KEY.BACKSPACE seems ineffective, courtesy of my browser--Chrome in my case--, which somehow captures the event and sends me back in history, exiting my Impact app in the process.

Any solution for this much appreciated.
</calm>

1 decade ago by Joncom

Should be able to use this and just apply it to the canvas element.

http://stackoverflow.com/questions/11266136/how-to-disable-the-backspace-key-for-anything-inside-body-except-inputs-and-te

1 decade ago by alexandre

Thanks Joncom, but no need. ig.input actually stops event propagation.

I thought I had stumbled on a bug, later realizing bug was mine. :\

1 decade ago by stewcode

I added this to the keydown function in input.js, not sure if it's the best way but it works:

if (event.keyCode == 8) {
event.preventDefault();
}
Page 1 of 1
« first « previous next › last »