July 09, 2009

Create a tab-switching gesture shortcut in Firefox 3.5

The recently-released Firefox 3.5 supports multi-touch gestures on newer Mac laptops, at least if you believe this Firefox features page. However, these gestures don't seem to be documented in detail anywhere on the Firefox Web site--it's acknowledged that they exist, but there's no apparent documentation on which gestures do what.

To save you some experimentation, today's hint will cover the pre-programmed Firefox gestures, and explain how to activate gestures to support switching between tabs. You can find all the pre-programmed gestures in Firefox by going to the "hidden" configuration page. Open a new browser window and enter about:config in the URL entry area. When you press Return, you'll be greeted by a scary warning, letting you know that you may void your (non-existent) warranty if you proceed. Click the "I'll be careful, I promise" button to go ahead and enter Firefox's detailed configuration page.

[ Discover what's new in business applications with InfoWorld's Technology: Applications newsletter and Killer Apps blog. ]

This page is definitely somewhat scary looking--and the warning shouldn't be taken too lightly, because you can really break Firefox if you just make arbitrary changes to the preferences you'll see listed here. What you're looking at are the values for every preference that Firefox uses--both those that are user-settable (browser.tabs.warnOnClose reflects the setting on the Tabs tab in Preferences for warning before closing multiple tabs) and those that are not (such as those we're about to change).

To see all the existing gestures, click in the box next to Filter and type browser.gesture; you don't have to press Return, as Firefox will update the list of matching preferences on the fly. The resulting list shows all the pre-defined gestures and their associated actions; for ease of reference, they are:

* Pinch: If you pinch in (move two fingers towards one another), you'll zoom out on the current page. Pinch out to zoom in on the current page. In addition, if you add the Shift key to either gesture, you'll reset the zoom level to the default value (100 percent).

* Swipe: Swipe left (three fingers on trackpad; drag left) to move back to the prior page in the current window; swipe right to jump to the next page in the current window. If you swipe down, the browser will jump to the bottom of the current page; swipe up to jump to the top.

The one gesture that seems to be missing is the ability to switch tabs. However, if you'll look at the matches on the about:config page, you'll see both browser.gesture.twist.left and browser.gesture.twist.right are listed. In the Value column, however, neither shows a value, indicating that they're undefined. With two simple changes, you can activate these gestures, too.

Double-click on browser.gesture.twist.left; this will drop down a sheet showing an empty text input box. Type Browser:PrevTab into the box, then click OK. Then double-click on the browser.gesture.twist.right preference, and enter Browser:NextTab into the text box and click OK.

That's it; you can now use a pinch gesture--put two fingers on the trackpad and then twist them to the right or left--to move between tabs in Firefox 3.5. If you want to, you can also redefine the other gestures (maybe you want pinch in to zoom in, though I would find that very confusing!). If you make a change you want to undo, Control-click on the preference in question and choose Reset from the contextual menu.

I'm not sure why the twirl gesture is disabled by default, but with it active, I find it a very intuitive way to change tabs in Firefox 3.5.

See more like this:

* web browsers,

* MacBook,

* MacBook Air,

* MacBookPro

Close

On Twitter now

Browsers

Powered by Twitter

On Twitter now

White Paper

D2D Virtual Tape Library Replication Primer

This whitepaper explains the terminology and concepts behind Data Replication technologies and establishes some sizing rules through worked examples. Learn the new paradigm in disaster tolerance—protect data anywhere.

Download now »

White Paper

An Alternative to Virtualization for Datacenter Cost Savings

Server virtualization is a popular option for dealing with mounting datacenter costs. Another equally promising approach is the use of an Application Delivery Controller. Citrix NetScaler provides a low-cost way for organizations to reduce their server count and accrue cost savings from a reduction in space, cooling, power and personnel.

Download now »

White Paper

Why Your Firewall, VPN, and IEEE 802.11i Aren't Enough to Protect Your Network

The emergence of WLANs has created a new breed of security threats to enterprise networks.

Included in HP ProCurve WLAN solutions is security technology that alleviates threats from WLANs through:
* Monitoring wireless activity inside and out of the enterprise
* Classifying WLAN transmissions into harmful and harmless
* Preventing transmissions that pose a security threat to the enterprise network
* Locating participating devices for physical remediation

Download now »

White Paper

Bringing the Edge to the Data Center

Effectively address data protection challenges, implementing solutions that help store and protect business–critical data while cutting costs and improving efficiency and reliability.

Download now »

Subscribe to the Applications Newsletter

Stay informed of the latest news and technologies around application, project and performance management.

White paper

Turn Your IT Department into a Lean Machine

Like any valuable resource, IT is a terrible thing to waste. But by applying the same lean techniques that have been used to streamline manufacturing processes, IT departments can reduce costs, improve performance and better manage resources.

Download now! »

Podcast

Economy Makes Automation a Must-Have Tech for 2009

Stephen Elliot, vice president of strategy for CA's Infrastructure Management and Data Center Automation business unit, explains why difficult economic times drive the need for simplified management capabilities and advanced automation tools.

Listen now! »

White paper

What You Need to Know About Virtual Infrastructure Management - Now

According to a recent study CA conducted with 300 CIOs and top IT executives, 64 percent of respondents say they've already invested in virtualization, and the other 36 percent reported that they plan to invest in virtualization.

Download now! »

Webcast

Leveraging Virtualization and Process Automation

In this video learn about process automation in a virtualized world. How CA and VMware are enabling enterprise datacenter automation.

View now! »
©1994-2009 Infoworld, Inc.