Skip to content
Browse files

add keyboard handling for selectAll

  • Loading branch information...
1 parent 5924fc6 commit 08e6846bcf9949437c70587e2e328ad460adcc17 @deanlandolt committed
Showing with 10 additions and 0 deletions.
  1. +10 −0 Selection.js
View
10 Selection.js
@@ -143,6 +143,16 @@ return declare([List], {
// listen for actions that should cause selections
on(this.contentNode, on.selector(selector, this.selectionEvents), focus);
}
+
+ on(this.contentNode, "keydown", function(event) {
+ // bail if not in ctrl mode
+ if (!event[ctrlEquiv]) return;
+ // select all
+ if (event.keyCode == 65) {
+ event.preventDefault();
+ grid.selectAll();
+ }
+ });
},
select: function(row, toRow, value){

0 comments on commit 08e6846

Please sign in to comment.
Something went wrong with that request. Please try again.