Closed (won't fix)
Project:
Drupal core
Version:
9.4.x-dev
Component:
contextual.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2019 at 14:32 UTC
Updated:
8 May 2022 at 03:47 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
kartagisComment #3
rajeev_drupal commentedComment #4
rajeev_drupal commentedCorrect. It should be 'Esc' Patch looks correct.
Comment #5
rajeev_drupal commentedComment #6
agrochal commentedWhat about changing 'esc' and 'ESC' in comments to 'Esc'?
Comment #7
avpadernoYes, correcting the comments too is appropriate.
Comment #10
abhijith s commentedApplied patch #6 and it works fine.The casing of "esc" is changed in the patch.
Comment #11
abhijith s commentedComment #12
alexpottAre we sure about "Esc" vs "esc" - at least on my current computer the key is labelled "esc". There are other examples of "esc key" and ckeditor help uses "press ESC". Are we sure there is a correct answer here?
Plus the .js file is not correctly compiled from the .es6.js see https://www.drupal.org/node/2815083 for how to do this.
Comment #13
alexpottAlso note that Drupal core atm is consistent in that all text shown to the user uses
esc:)Comment #14
avpadernoThe key name is usually written Esc, Escape, or ESC, but I don't see any confusion in esc, given that some keyboards label it esc. (Truly, there are keyboards still using Esc). esc key is surely better than escape key.
I am not sure it's worth changing that. Are there users who get confused from press the esc key to exit?
I don't think it should be corrected on the basis that, since it's a key name, it should be written Esc. If that were the case, we should also write the Return/Enter key.
Comment #15
kartagis@kiamlaluno's comment makes sense. Should I close the issue?
Comment #16
avpaderno@Kartagis I take alex's comments are saying the patch needs to be fixed/expanded. It needs to be fixed because it is changing just the .es6.js files, while the .js files should be compiled as described in https://www.drupal.org/node/2815083. It needs to be expanded as those aren't the only files were the key is called the esc key.
Comment #19
vikashsoni commented#2 patch applied successfully
after patch esc changed to Esc
Thanks for the patch
Comment #20
larowlanYes, I think so
Reminded me of this classic
https://www.youtube.com/watch?v=SGzkUgTgpa4