mirror of
https://github.com/getredash/redash.git
synced 2026-05-13 06:00:53 -04:00
Add support for ESC key in edit-in-place
This commit is contained in:
@@ -270,6 +270,11 @@
|
||||
// allow 'shift' to break lines
|
||||
if (e.which === 13 && !e.shiftKey) {
|
||||
save();
|
||||
} else if (e.which === 27) {
|
||||
$scope.value = $scope.oldValue;
|
||||
$scope.$apply(function() {
|
||||
$(inputElement[0]).blur();
|
||||
});
|
||||
}
|
||||
}).blur(function() {
|
||||
save();
|
||||
|
||||
Reference in New Issue
Block a user