1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Merge pull request #2363 from kazuhitoyokoi/master-fixtabselectkey

Support ctrl key to select tabs for Windows
This commit is contained in:
Nick O'Leary 2019-11-01 23:35:18 +00:00 committed by GitHub
commit 7321e206c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -218,7 +218,7 @@ RED.tabs = (function() {
var thisTab = $(this).parent(); var thisTab = $(this).parent();
var fireSelectionChanged = false; var fireSelectionChanged = false;
if (options.onselect) { if (options.onselect) {
if (evt.metaKey) { if (evt.metaKey || evt.ctrlKey) {
if (thisTab.hasClass("selected")) { if (thisTab.hasClass("selected")) {
thisTab.removeClass("selected"); thisTab.removeClass("selected");
if (thisTab[0] !== currentTab[0]) { if (thisTab[0] !== currentTab[0]) {