Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Adding input types to focusable elements #9476 #9915

Merged
merged 2 commits into from
Dec 2, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/brackets.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,10 +409,7 @@ define(function (require, exports, module) {
// Text fields should always be focusable.
var $target = $(e.target),
isFormElement =
$target.is("input[type=text]") ||
$target.is("input[type=number]") ||
$target.is("input[type=password]") ||
$target.is("input:not([type])") || // input with no type attribute defaults to text
$target.is("input") ||
$target.is("textarea") ||
$target.is("select");

Expand Down