File tree 2 files changed +16
-7
lines changed
2 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -288,6 +288,7 @@ sup {
288
288
right : 0 ;
289
289
bottom : 0 ;
290
290
background-color : rgba (225 , 225 , 225 , 1 );
291
+ color : black;
291
292
z-index : 2 ;
292
293
cursor : pointer;
293
294
border-width : 3px ;
@@ -297,6 +298,12 @@ sup {
297
298
298
299
padding : 10px ;
299
300
}
301
+ # help-overlay kbd {
302
+ border-width : 1px ;
303
+ border-color : black;
304
+ border-style : solid;
305
+ background-color : white;
306
+ }
300
307
# help-title {
301
308
text-align : center;
302
309
}
Original file line number Diff line number Diff line change @@ -668,14 +668,16 @@ aria-label="Show hidden lines"></button>';
668
668
document . getElementById ( "help-overlay" ) . style . display = "none" ;
669
669
}
670
670
671
- if ( e . shiftKey ) {
672
- switch ( e . key ) {
673
- case '?' :
674
- e . preventDefault ( ) ;
675
- showHelp ( ) ;
676
- break ;
677
- }
671
+ // Usually needs the Shift key to be pressed
672
+ switch ( e . key ) {
673
+ case '?' :
674
+ e . preventDefault ( ) ;
675
+ showHelp ( ) ;
676
+ break ;
677
+ }
678
678
679
+ // Rest of the keys are only active when the Shift key is not pressed
680
+ if ( e . shiftKey ) {
679
681
return ;
680
682
}
681
683
You can’t perform that action at this time.
0 commit comments