I have been writing a sort of online spreadsheet application for a specific purpose and along with it I have written my own undo and redo functions. When the user presses ctr-z or ctr-y the undoes or redoes the last changes to the text fields. Is their a way using JavaScript to effectively hijack the ctr-z and ctr-y keypress events that occur anywhere on the page and cause them to run my own functions. Or at a minimum to disable the standard browser functionality.
I need to get this working the recent versions of Firefox and Chrome on windows only.