Skip to content

Commit 69416b4

Browse files
committed
added tab to index highlight keyword in sourcecodes
1 parent 698ca59 commit 69416b4

5 files changed

Lines changed: 20 additions & 10 deletions

File tree

‎cache.manifest‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# Build: 20160216095328
2+
# Build: 20160216100546
33

44
CACHE:
55
resources/fonts/Dressedless_Three.svg

‎index.html‎

Lines changed: 4 additions & 4 deletions
Large diffs are not rendered by default.

‎static/app/html/sourcecode.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
<div class="modal-dialog modal-lg">
33
<div class="modal-content">
44
<div class="modal-header">
5-
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
5+
<button type="button" class="close" data-dismiss="modal" aria-label="Close" tabindex="-1">
66
<span aria-hidden="true">&times;</span>
77
</button>
88
<div>
99
<div class="btn-group btn-group-sm" role="group">
1010
<div class="btn-group" role="group">
11-
<button type="button" class="btn btn-primary-outline dropdown-toggle btn-sm" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
11+
<button type="button" class="btn btn-primary-outline dropdown-toggle btn-sm" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" tabindex="-1">
1212
All matched results <span class="label label-danger label-pill match-count">1</span>
1313
</button>
1414
<div class="dropdown-menu">
@@ -22,7 +22,7 @@
2222
</div>
2323
</div>
2424
</div>
25-
<a class="btn btn-primary-outline btn-sm cur-repo" target="_blank">Repo</a>
25+
<a class="btn btn-primary-outline btn-sm cur-repo" target="_blank" tabindex="-1">Repo</a>
2626
</div>
2727
</div>
2828
<div class="modal-body">

‎static/app/src/AppBundle.js‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,12 @@
603603
els.sourceCodeContent.unhighlight();
604604
setTimeout(function(){
605605
els.sourceCodeContent.highlight(els.lastVariableKeyword);
606-
},1000);
606+
setTimeout(function(){
607+
els.sourceCodeContent.find('.highlight').each(function(idx){
608+
this.setAttribute('tabindex',idx+1);
609+
});
610+
},300);
611+
},800);
607612
}
608613

609614
function renderRelatedProperty(name) {

‎static/app/src/View.js‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,12 @@ function renderHighlightVariableKeyword(){
548548
els.sourceCodeContent.unhighlight();
549549
setTimeout(function(){
550550
els.sourceCodeContent.highlight(els.lastVariableKeyword);
551-
},1000);
551+
setTimeout(function(){
552+
els.sourceCodeContent.find('.highlight').each(function(idx){
553+
this.setAttribute('tabindex',idx+1);
554+
});
555+
},300);
556+
},800);
552557
}
553558

554559
function renderRelatedProperty(name) {

0 commit comments

Comments
 (0)