The keyboard shortcut E sometimes edits a post that isn't the post currently visible to the user. Example (I pressed E
to edit) with this URL:
Tested with the latest version of Chrome on Windows 10.
The keyboard shortcut E sometimes edits a post that isn't the post currently visible to the user. Example (I pressed E
to edit) with this URL:
Tested with the latest version of Chrome on Windows 10.
When using keyboard shortcuts, actions related to posts will target a "selected" post. Selection happens either through shortcuts for that or with some actions. However, once selected all future actions will still target the same selected question regardless where in the page you are.
Normally, the selection shows up as a grey-ish background, more intensive towards the outer border. Here is an example:
.keyboard-selected {
box-shadow: 15px 15px 50px rgba(0, 0, 0, .2) inset;
}
div {
padding: 10px;
}
<div>Bacon ipsum dolor amet leberkas porchetta beef ribs landjaeger boudin, pork kielbasa. Chicken picanha corned beef pork loin ham hock short loin, prosciutto t-bone jerky shank cupim flank frankfurter leberkas. Prosciutto pork loin tri-tip hamburger, ribeye boudin corned beef salami tail alcatra strip steak meatloaf brisket chuck ham. Pig rump kevin strip steak ham hock swine, tri-tip frankfurter alcatra brisket biltong sausage.</div>
<div class="keyboard-selected">Beef ribs bacon pig andouille ribeye. Pork loin beef pancetta rump, short ribs venison bresaola chislic tri-tip ribeye burgdoggen landjaeger jowl. Pork loin ham capicola spare ribs rump cupim brisket beef ribs. Landjaeger ball tip cupim strip steak pork ham short loin shankle swine biltong short ribs andouille porchetta beef. Rump strip steak landjaeger pig, jowl spare ribs capicola.</div>
<div>Alcatra drumstick short ribs, landjaeger salami jowl bacon. Pastrami shoulder swine jerky, andouille shankle tri-tip ball tip turducken pork alcatra chislic. Doner pork belly ham hock leberkas porchetta spare ribs chuck capicola drumstick beef ribs meatloaf pancetta prosciutto. Leberkas picanha drumstick corned beef. Pork loin turkey kielbasa jowl. Jowl sausage burgdoggen pig corned beef brisket.</div>
This highlight is not visible when the background is purely black:
.keyboard-selected {
box-shadow: 15px 15px 50px rgba(0, 0, 0, .2) inset;
}
div {
padding: 10px;
}
body {
/* black background */
background-color: rgb(0, 0, 0);
/* white text */
color: rgb(255, 255, 255);
}
<div>Bacon ipsum dolor amet leberkas porchetta beef ribs landjaeger boudin, pork kielbasa. Chicken picanha corned beef pork loin ham hock short loin, prosciutto t-bone jerky shank cupim flank frankfurter leberkas. Prosciutto pork loin tri-tip hamburger, ribeye boudin corned beef salami tail alcatra strip steak meatloaf brisket chuck ham. Pig rump kevin strip steak ham hock swine, tri-tip frankfurter alcatra brisket biltong sausage.</div>
<div class="keyboard-selected">Beef ribs bacon pig andouille ribeye. Pork loin beef pancetta rump, short ribs venison bresaola chislic tri-tip ribeye burgdoggen landjaeger jowl. Pork loin ham capicola spare ribs rump cupim brisket beef ribs. Landjaeger ball tip cupim strip steak pork ham short loin shankle swine biltong short ribs andouille porchetta beef. Rump strip steak landjaeger pig, jowl spare ribs capicola.</div>
<div>Alcatra drumstick short ribs, landjaeger salami jowl bacon. Pastrami shoulder swine jerky, andouille shankle tri-tip ball tip turducken pork alcatra chislic. Doner pork belly ham hock leberkas porchetta spare ribs chuck capicola drumstick beef ribs meatloaf pancetta prosciutto. Leberkas picanha drumstick corned beef. Pork loin turkey kielbasa jowl. Jowl sausage burgdoggen pig corned beef brisket.</div>
This can affect browser options as well as addons that provide a dark mode.
Without the highlight, it will not be evident which post will be edited when pressing E.
keyboard-selected
class on it due to being focused.box-shadow: 15px 15px 50px rgba(0, 0, 0, .2) inset;
which is applied over a black (rgb(0, 0, 0)
) background. Since there is zero visual feedback that something is selected, it's understandable that users might be confused how the edit (and other actions) choose their target.