Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.4: Allow space bar scroll from Safari RSS search field Web Browsers
Tiger only hintI love Safari's RSS reader, but it was really bugging me that when an RSS page loads, Safari immediately puts the focus on the search field and essentially blocks scrolling the page using the space bar.

So I looked through the page source and found a way to add this functionality. If you follow these directions, Safari will test to see if a space is the first key entered into the search field. If it is, Safari blocks it from the search field and instead scrolls the page down (or up if Shift is being held). If there is other text in the search field, then space will work normally.

To make this modification, edit the following file: /System -> Library -> PrivateFrameworks -> SyndicationUI.framework -> Resources -> Articles.js. Within that file, search for function handleScrollKeys. This will jump you to the function that handles key capturing when the search field is active. Add the following test case somewhere before default: and after a previous break; line within the function:
case "U+000020":
  if (document.getElementById('searchfield').value.length != 0) return;
  if (event.shiftKey) scroller.scrollByPages(-1);
  else scroller.scrollByPages(1);
  break;
When saving the file, you will likely need an administrator's password. You won't need to restart Safari; just reload any open RSS pages to see the change.

[robg adds: I tested this one, and it worked. I couldn't, however, do the edits in TextEdit without changing any permissions; TextEdit won't overwrite the file, given its permissions. You'll either have to use an editor that can do such things (BBEdit), or (my choice) use the Terminal and sudo with your favorite text editor.]
    •    
  • Currently 2.67 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[14,452 views]  

10.4: Allow space bar scroll from Safari RSS search field | 12 comments | Create New Account
Click here to return to the '10.4: Allow space bar scroll from Safari RSS search field' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Copy-pastable path
Authored by: guybrush on Aug 19, '05 10:11:04AM

nice! :)

Here's the full path to the file so you can copy-paste it into Terminal:

/System/Library/PrivateFrameworks/SyndicationUI.framework/Resources/Articles.js

[ Reply to This | # ]
10.4: Allow space bar scroll from Safari RSS search field
Authored by: googoo on Aug 19, '05 12:39:23PM

Thanks 10^6! That feature has caused much frustration over the last 6 months, and now it is fixed (until the next upgrade).

-Mark



[ Reply to This | # ]
10.4: Allow space bar scroll from Safari RSS search field
Authored by: simX on Aug 19, '05 04:49:55PM

O M G. This has annoyed me to NO END in Safari 2.0, so thank you so VERY much for figuring out how to fix this problem! Yay for space-scrolling in Safari 2.0!

(BTW, to anybody else -- if it doesn't work, you've probably made a typo when adding in the new JavaScript code. Go back and check -- you really don't need to restart Safari.)

-- simX



[ Reply to This | # ]
10.4: Allow space bar scroll from Safari RSS search field
Authored by: paulsaints on Aug 20, '05 04:50:49AM

TextWrangler allows open and save fine (with admin password required.) Thanks for this hint works great although i needed to restart Safari.



[ Reply to This | # ]
10.4: Allow space bar scroll from Safari RSS search field
Authored by: benfsmith on Aug 20, '05 12:26:22PM

Thank you for the great hint.

This has been an annoyance on not just RSS pages, but other sites where they have a text field. Is there a way to make this hint work on these sites as well? Many sites have at least a search field at the top of their pages, which makes space-scrolling impossible unless you first click on the page background. This hint only fixes RSS pages for me for some reason.



[ Reply to This | # ]
It's possible in Camino and Firefox
Authored by: rootpoot on Aug 23, '05 12:24:10AM
Adding

user_pref("capability.policy.default.HTMLInputElement.focus", "noAccess");
to your user.js file disables this highly annoying behavior. I doubt anything can be done to stop it in Safari , though. Yet another reason to use Camino, Safari's preferences are severely lacking.

[ Reply to This | # ]
10.4: Allow space bar scroll from Safari RSS search field
Authored by: Puzo on Aug 20, '05 05:33:10PM

What's wrong with Option-Arrow Down? That will scroll pages same distance as space bar. A bonus: Option-Arrow Up will scrooll you, well, upwards, with same increment.



[ Reply to This | # ]
10.4: Allow space bar scroll from Safari RSS search field
Authored by: benfsmith on Aug 20, '05 05:58:34PM

It is simply the difference in difficulty between pressing two small buttons and one large one. As previously indicated, it isn't a real problem per se, just an annoyance.



[ Reply to This | # ]
10.4: Allow space bar scroll from Safari RSS search field
Authored by: rootpoot on Aug 23, '05 12:25:42AM

Shift-space will scroll you back up.



[ Reply to This | # ]
Now if anybody could figure out...
Authored by: nick on Jan 31, '06 09:00:35AM

...how to switch tabs when textfields are selected.



[ Reply to This | # ]
Now if anybody could figure out...
Authored by: jaysin on Mar 13, '06 05:26:31PM
To switch tabs, even when the focus is in a text field:

Cmd + }
(Cmd + Shift + ])

[ Reply to This | # ]
10.4: Allow space bar scroll from Safari RSS search field
Authored by: ephramz on Dec 18, '07 07:34:38AM
It seems the case "U+000020": needs to be changed to case "U+0020": in the latest release of Safari 3.0.4 for some reason. If I didn't make this change, this extremely valuable hint didn't work for me. Thanks for figuring this out! Wish I'd found it months ago!

[ Reply to This | # ]