[SOLVED] Mandriva 2010: How to map keyboard key to Firefox Search bar?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Mandriva 2010: How to map keyboard key to Firefox Search bar?
I'm almost embarrassed to come up with such a trivial question, but this one's really bugging me.
I have a Nortek Diva keyboard and my machine runs Mandriva. In Mandriva 2009, pressing the "magnifying glass" button on my keyboard took me straight to the Firefox Search bar. Fantastic! Now that I've upgraded to Mandriva 2010, however, pressing the same button just launches the search engine as a new tab (okay, I can live with that), but the cursor is not active in the Search field.
I've been to the Nortek site but there are no drivers for the keyboard, Linux or otherwise. And no Nortek keyboard configurations appear in the Mandriva Linux Control Centre. I know how to use xev to capture keystrokes. What I'd like to know is, how can I map the keyboard button to position a cursor in the Firefox Search bar? I use Search A LOT, so this is really slowing me down. I bet it's something like "firefox %search". Any help gratefully received. (I'm using Firefox 3.5.3)
There doesn't seem to be any way to customise Firefox keyboard shortcuts so the trick will be to map the "magnifying glass" button on your keyboard to the standard shortcut. Best ensure the standard shortcut (Ctrl+K?) works first!
IDK about that; maybe xkbd and xmodmap are involved. I think there's an X utility to show you what each key generates but I can't remember its name. At a command prompt on a virtual terminal (accessed by Ctrl+Alt+F<1 to 6>) the showkey command does it (you have to wait for it to timeout).
Not so many questions here about "maginfying glass" keys but several about brightness and volume control keys so might be worth searching LQ for those threads to get an idea of how key mapping is done.