Tao’s Blog

  • Tao said: I twit, 20 minutes ago
  • Tao said: Aha 7 days ago

Sunday, December 20, 2009

Keyboard navigation of my Gallery2 album [Tips] — tao @ 2:48 pm

Recently I uploaded some pictures to my online photo album, which is powered by an Open Source PHP software called Gallery2.

One problem I experienced with this software is the lack of a convenient way to navigate the photos by using keyboard shortcuts. One must use the navigation buttons to move to the next or previous photo:

Aiming the tiny buttons is not easy, especially when you are using a big screen computer, or on a laptop without an external mouse.

Last week, I looked into the template file for the photo page of Gallery2, made some modifications, so now one can use keyboard to go to the previous and next photo. For example, open the following picture:

A picture in my photo album,

If you use Macintosh:

Firefox browser, Ctrl+> (period key) to go to next photo, Ctrl+< (comma key) to previous photo,

Safari browser, Ctrl+Option+> to next photo, Ctrl+Option+< to previous photo;

Windows computer:

Firefox browser, Alt+Shift+> to next photo, Alt+Shift+< to previous by default, (one can change that to Alt+> and Alt+< by changing the value of ui.key.contentAccess to 4, inside the about:config configuration page)

Internet Explorer, Alt+> or Alt+< followed by the Enter key

Google Chrome, Alt+> or Alt+<, without hitting the Enter key

Wednesday, December 16, 2009

New Orleans Trip Photos [Digital Life] — tao @ 12:53 am

Went to New Orleans earlier this month. Some of the photos:

New Orleans Trip Album 1

     

0.398 Hosted by tongtao.com and powered by WordPress cBlog