Skip to content

Commit

Permalink
Merge pull request #1221 from piecyk/add-select-all-text
Browse files Browse the repository at this point in the history
Add "select all text" functionality Shift+Home|Del
  • Loading branch information
JedWatson authored Sep 16, 2016
2 parents f61c4f2 + 17d76a4 commit 15d0bb8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -496,9 +496,15 @@ const Select = React.createClass({
this.focusPageDownOption();
break;
case 35: // end key
if (event.shiftKey) {
return;
}
this.focusEndOption();
break;
case 36: // home key
if (event.shiftKey) {
return;
}
this.focusStartOption();
break;
default: return;
Expand Down

0 comments on commit 15d0bb8

Please sign in to comment.