AshishKapoor commented on a change in pull request #11947:
URL: https://github.com/apache/druid/pull/11947#discussion_r774299272
##########
File path:
web-console/src/views/query-view/query-output/column-rename-input/column-rename-input.tsx
##########
@@ -44,12 +44,12 @@ export const ColumnRenameInput = React.memo(function
ColumnRenameInput(
value={newName}
onChange={(e: any) => setNewName(e.target.value)}
onKeyDown={(e: React.KeyboardEvent<HTMLInputElement>) => {
- switch (e.keyCode) {
- case 13: // Enter
+ switch (e.key) {
+ case 'enter': // Enter
Review comment:
Done! Changed to 'Enter' and 'Tab'. Also, removed unwanted comments.
For testing and reference
https://css-tricks.com/snippets/javascript/javascript-keycodes/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]