Skip to content

Commit c81d421

Browse files
committed
Escape support
Signed-off-by: worksofliam <[email protected]>
1 parent 5fd5d1a commit c81d421

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-db2i",
33
"displayName": "Db2 for IBM i",
44
"description": "Db2 for IBM i tools in VS Code",
5-
"version": "1.6.3-scott9",
5+
"version": "1.6.3-scott10",
66
"engines": {
77
"vscode": "^1.95.0"
88
},

src/views/results/html.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,15 @@ document.getElementById('resultset').onclick = function(e){
131131
}
132132
}
133133
134-
if (e.key === 'Enter') {
135-
e.preventDefault();
136-
finishEditing();
134+
switch (e.key) {
135+
case 'Enter':
136+
e.preventDefault();
137+
finishEditing();
138+
break;
139+
case 'Escape':
140+
editableNode.innerHTML = chosenValue;
141+
finishEditing();
142+
break;
137143
}
138144
}
139145

0 commit comments

Comments
 (0)