End Discourse
-
Not what you think it is.
- go into a random topic
- click the link icon on a random post
- notice that the link text has focus
- hit the End
- notice how you go to the end of the thread, not the end of the textbox that has focus, thereby losing your place
-
Same issue with Home, which means they're not escaping those keyboard shortcuts in that input field, but all others are (any single letter ones as well as Ctrl+F).
-
I'm guessing this is a side effect of stopping Del deleting the contents of that box...
-
So when I have focus on a textbox, and I press the Del, it doesn't do exactly what I'd expect it to do?
-
Considering they're using "readonly" on that textbox, Del shouldn't have any effect with or without keyboard shortcuts.
-
Correct. They changed it from what you think it'd do to not doing anything.
-
Considering they're using "readonly" on that textbox
If that's the only thing they did, then my supposition is probably incorrect.
-
Considering they're using "readonly" on that textbox, Del shouldn't have any effect with or without keyboard shortcuts.
If you're not allowed to delete or edit the text in that INPUT box, why is it an input at all?
-
My thought would be, the keyboard shortcuts should work anywhere on the forums except when focus is in
input[type=text]
andtextarea
elements, with the possible exception of Ctrl+F.Yes, I'm aware the
input
one would need to be expanded for the other text field types (password, email, etc.).
-
-
Ask the W3C, not me.
No no - it makes sense in cases where you have real inputs, but sometimes they may need to be disabled/readonly for the form to work.
But this isn't a freaking form. It's a big mess of JS that probably even pulls a new json stream rather than reading the text from that box at all anyway, so there is zero value to it being an input box if it's set to readonly.
-
I assume it's an input box to help facilitate easy highlighting/copying of the link to the post, since text inputs handle overflow really well in general.
-
Does not happen in Firefox.
-
I assume it's an input box to help facilitate easy highlighting/copying of the link to the post, since text inputs handle overflow really well in general.
good enough for me - now if only they fixed all the things that hack doesn't facilitate
-
to help facilitate easy highlighting/copying of the link to the post
If only there was some way to copy the url of a link using any browser.
Filed under: but that would require using actual links like the time stamp
-
like the time stamp
Too bad the timestamp being a link to share the post isn't very discoverable, and the "share a link to this post" button is, actually, a button.
Filed under: Also, have to develop it for the lowest common denominator
-
And all this is true because the Discourse way of solving problems is to create additional problems that make the original problems seem insignificant.
-
"Ohhhh, you think you have a problem now..."
-
Can't repro in Firefox 32.
-
Interesting.
(that anyone uses Firefox, not that you can't repro)
-
I use Firefox because the benefit of switching does not make up for the cost.
-
No repro in IE10, likely works in IE11.
Looks to be a Chrome thing. Seems their attempt to set focus in the box doesn't work in Chrome (and possibly Safari too?), but does in IE and FF.
-
It seems to me that while you can select the text in the box, you cannot actually place your cursor inside of it - and not having a cursor, I suppose, is what causes the keypress to bubble out of the input field and be handled.
-
Definitely is a Chrome thing regarding the cursor, but if the input field is supposed to be capturing the key events (and not bubbling it if caught), it still is caught in Chrome, even if it is readonly:
Tested by highlighting the text in the input and hitting "End" and "Home".
-
I was ... never mind. hmm.... I don't know how that works.
-
No repo in IE11 either
-
Interesting.
(that anyone uses Firefox, not that you can't repro)
I don't like Chrome andyum install iexplore
fails miserably.
-
I use Discofox at home and Dischrome at work.
No, I don't know why I'm doing that, either.
-
Dischrome
Didn't we agree that browser is called dhrome?
As in, "@ben_lubar is writing this post on his dhromebook."
-
But wasn't that before dhromecourse?
-
-