From c9303a884d9297b960826031148a3a39d84a7898 Mon Sep 17 00:00:00 2001 From: David Huynh Date: Tue, 18 May 2010 02:52:02 +0000 Subject: [PATCH] The process widget was catching all keystrokes with meta or ctrl flag and performed an undo. We actually need to test for ctrl-z or meta-z. git-svn-id: http://google-refine.googlecode.com/svn/trunk@812 7d457c2a-affb-35e4-300a-418c747d4874 --- src/main/webapp/scripts/widgets/process-widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/scripts/widgets/process-widget.js b/src/main/webapp/scripts/widgets/process-widget.js index fbe5905e9..5317c1321 100644 --- a/src/main/webapp/scripts/widgets/process-widget.js +++ b/src/main/webapp/scripts/widgets/process-widget.js @@ -9,7 +9,7 @@ function ProcessWidget(div) { var self = this; $(window).keypress(function(evt) { - if (evt.ctrlKey || evt.metaKey) { + if (evt.charCode == 26 || (evt.charCode == 122 && (evt.ctrlKey || evt.metaKey))) { // ctrl-z or meta-z var t = evt.target; if (t) { var tagName = t.tagName.toLowerCase();