Skip to content

Commit

Permalink
Don't toggle row selection upon text selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob--W committed Oct 23, 2018
1 parent b8a175d commit 5c5b6d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cookie-manager.js
Expand Up @@ -1999,6 +1999,9 @@ function renderCookie(row, cmApi) {
if (event.altKey || event.ctrlKey || event.cmdKey || event.shiftKey) {
return; // Do nothing if a key modifier was pressed.
}
if (!isEmptyTextSelection()) {
return;
}
row.cmApi.toggleHighlight();
updateButtonView();
};
Expand Down Expand Up @@ -2103,6 +2106,9 @@ function renderMultipleCookies(row, cmApis) {
if (event.altKey || event.ctrlKey || event.cmdKey || event.shiftKey) {
return; // Do nothing if a key modifier was pressed.
}
if (!isEmptyTextSelection()) {
return;
}
row.cmApi.toggleHighlight();
updateButtonView();
};
Expand Down

0 comments on commit 5c5b6d3

Please sign in to comment.