LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 12-10-2009, 11:21 PM   #1
Sister Clamp
LQ Newbie
 
Registered: Dec 2009
Distribution: Chakra
Posts: 7

Rep: Reputation: 4
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)

SC
 
Old 12-25-2009, 01:55 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
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.
 
Old 12-27-2009, 03:55 PM   #3
Sister Clamp
LQ Newbie
 
Registered: Dec 2009
Distribution: Chakra
Posts: 7

Original Poster
Rep: Reputation: 4
catkin, thanks for the info! The utility to capture keystrokes is "xev", as I mentioned in my first post. But now that I know to map it to "Ctrl+k", that's the problem solved.

All I have to do now is live with Mandriva 2010 until the Mandriva team fix what they broke from Mandriva 2009! Thanks again and have a happy new year.

S C
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox 3.5.5 crashes Mandriva 2010 session geoff3 Mandriva 6 12-04-2009 05:02 PM
firefox - search bar schneidz Linux - Software 2 03-03-2009 05:49 PM
How can I change the key-map in a specific keyboard language? sharafat Linux - Software 3 03-10-2007 09:39 PM
Firefox - Autohighlight search and address bar notregistered Linux - General 2 03-01-2005 03:40 PM
howto map mouse button to keyboard key lopette Linux - Software 2 09-16-2004 03:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration