File tree 1 file changed +6
-3
lines changed
src/librustdoc/html/static
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 240
240
}
241
241
242
242
function handleShortcut ( ev ) {
243
- if ( document . activeElement . tagName === "INPUT" )
243
+ if ( document . activeElement . tagName === "INPUT" &&
244
+ hasClass ( document . getElementById ( 'main' ) , "hidden" ) ) {
244
245
return ;
246
+ }
245
247
246
248
// Don't interfere with browser shortcuts
247
- if ( ev . ctrlKey || ev . altKey || ev . metaKey )
249
+ if ( ev . ctrlKey || ev . altKey || ev . metaKey ) {
248
250
return ;
251
+ }
249
252
250
253
var help = document . getElementById ( "help" ) ;
251
254
switch ( getVirtualKey ( ev ) ) {
1800
1803
if ( ! next ) {
1801
1804
return ;
1802
1805
}
1803
- if ( checkIfThereAreMethods ( next . childNodes ) &&
1806
+ if ( ( checkIfThereAreMethods ( next . childNodes ) || hasClass ( e , 'method' ) ) &&
1804
1807
( hasClass ( next , 'docblock' ) ||
1805
1808
hasClass ( e , 'impl' ) ||
1806
1809
( hasClass ( next , 'stability' ) &&
You can’t perform that action at this time.
0 commit comments