File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 20
20
console . log ( "loaded?" ) ;
21
21
22
22
document . onkeydown = function ( evt ) {
23
+ // This functions keeps track of keyboard inputs in order to allow copy, paste and other features
24
+
23
25
evt = evt || window . event ;
24
26
if ( evt . ctrlKey && evt . keyCode == 67 ) {
25
27
window . document . execCommand ( "copy" ) ;
26
- console . log ( "Ctrl-C" ) ;
27
28
} else if ( evt . ctrlKey && evt . keyCode == 88 ) {
28
29
window . document . execCommand ( "cut" ) ;
29
- console . log ( "Ctrl-X" ) ;
30
30
} else if ( evt . ctrlKey && evt . keyCode == 86 ) {
31
31
window . document . execCommand ( "paste" ) ;
32
- console . log ( "Ctrl-V" ) ;
33
32
} else if ( evt . ctrlKey && evt . keyCode == 90 ) {
34
33
window . document . execCommand ( "undo" ) ;
35
- console . log ( "Ctrl-Z" ) ;
36
34
} else if ( evt . ctrlKey && evt . shiftKey && evt . keyCode == 90 ) {
37
35
window . document . execCommand ( "redo" ) ;
38
- console . log ( "Ctrl-Z" ) ;
39
36
}
40
37
} ;
Original file line number Diff line number Diff line change @@ -132,7 +132,11 @@ ApplicationWindow {
132
132
var existingDomain = matches && matches[1 ];
133
133
if (requestedDomain == existingDomain) {
134
134
domainAlreadyOpen = true ;
135
- mainSplit .views [i].view .url = url;
135
+
136
+ if (mainSplit .views [i].view .url != url){
137
+ mainSplit .views [i].view .url = url;
138
+ }
139
+
136
140
activeView (mainSplit .views [i].view , mainSplit .views [i].menuItem );
137
141
}
138
142
}
@@ -888,7 +892,7 @@ ApplicationWindow {
888
892
function addPeer (peer ) { peerModel .append (peer) }
889
893
890
894
function setPeerCounters (text ) {
891
- peerCounterLabel .text = text
895
+ // peerCounterLabel.text = text
892
896
}
893
897
894
898
function timeAgo (unixTs ){
You can’t perform that action at this time.
0 commit comments