File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/librustdoc/html/static Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 240240 }
241241
242242 function handleShortcut ( ev ) {
243- if ( document . activeElement . tagName === "INPUT" )
243+ if ( document . activeElement . tagName === "INPUT" &&
244+ hasClass ( document . getElementById ( 'main' ) , "hidden" ) ) {
244245 return ;
246+ }
245247
246248 // Don't interfere with browser shortcuts
247- if ( ev . ctrlKey || ev . altKey || ev . metaKey )
249+ if ( ev . ctrlKey || ev . altKey || ev . metaKey ) {
248250 return ;
251+ }
249252
250253 var help = document . getElementById ( "help" ) ;
251254 switch ( getVirtualKey ( ev ) ) {
18001803 if ( ! next ) {
18011804 return ;
18021805 }
1803- if ( checkIfThereAreMethods ( next . childNodes ) &&
1806+ if ( ( checkIfThereAreMethods ( next . childNodes ) || hasClass ( e , 'method' ) ) &&
18041807 ( hasClass ( next , 'docblock' ) ||
18051808 hasClass ( e , 'impl' ) ||
18061809 ( hasClass ( next , 'stability' ) &&
You can’t perform that action at this time.
0 commit comments