-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Add some <input> types to focusable elements #9476
Comments
I can't think of any |
Radio and checkbox maybe? I have no idea. |
Right, Mac doesn't support giving focus to buttons ( Probably don't want to give focus to |
That's true. For Linux, it depends. I know GTK does. |
@redmunds, what's the deal, should I pick this? Will need some guidance though. |
@cyberomin First, make your environment ready for hacking. You should find all info here. Secondly, fix the issue! I'd say, go online and find all the valid input Third, commit your changes and open a pull request. Done! If you have any questions, feel free to post them here! |
Thanks @TuurDutoit, my environment is setup already. I'll give this a shot. This is my first FOSS contribution though, I still need some hand-holding and mentorship. |
It's not that difficult, you'll handle it. And remember: we don't bite ... hard 😃 |
@TuurDutoit It's probably easier (and easier to maintain) to just enable focussing all input types except checkboxes, hidden ones and radios. |
@TuurDutoit got it :-) @marcelgerber what will it be? Should I go with what @TuurDutoit suggested? |
@cyberomin I'm not sure how best to handle |
I've been looking at HTML5 spec, that now is a W3C recommendation, and all the allowed values for Renders as a plain text field:
Renders as another kind of field:
So, is the solution for this bug include all the fields in the first list in the |
Hey @redmunds ! I was able to reproduce this issue on Windows and Linux, using a simple extension with all the possible fields. I just did the PR #9915 adding each one of the input types, also tried adding only If some of you think that something needs to be improved, please let me know! Thanks! |
…lements Adding input types to focusable elements #9476
Confirmed. Closing. |
In brackets.js, on line 414, there is some code that restricts focusing elements which are descendants of elements with class
.no-focus
. In that code block, there is a check that always allows focusing of text input elements. But, this only checks for elements withtype
oftext
,number
,password
or no type at all. Since HTML5, though, some types have been added to the spec, likeemail
,url
,tel
,date
, etc. Maybe we should consider adding these, too.The text was updated successfully, but these errors were encountered: