Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Bash has a myriad of useful shortcuts. For instance Alt+B, which moves the cursor back one word. Only I have assigned this particular combination and a few other shortcuts to do things in gnome. The trouble is, i've gotten used to it. Alt+B opens my browser and I'd like for it to stay that way, except when I work in gnome terminal.

Hence my question: How do I disable global shortcuts, (like the one to open my browser) and enable bash's own shortcuts, exclusively when working in gnome-terminal? Is there a way to tell gnome that the active/focused application's shortcuts take precedence over global shortcuts?

share|improve this question
up vote 1 down vote accepted

I don't think you can, apart from projecting complicated things monitoring focused/unfocused window, and changing shortcuts correspondingly.

So the advice is to avoid shortcut collisions.

share|improve this answer
I feared that much. That's pretty unsatisfactory and surely a feature to be implemented. I'll leave the question open for a while. Maybe someone has a hack for that. – con-f-use Aug 29 '11 at 9:30

I'm not sure if this is a new feature or not but there is an option:

  • go to edit - keyboard preferences - unckeck "Enable menu access keys (Such as Alt+F to open the File menu)"
share|improve this answer
That would disable them everywhere. I want to selectively disable them only when working in gnome-terminal. – con-f-use Jun 8 '12 at 16:19
@con-f-use tibike's way only affects the gnome-terminal, it's an option in gnome-terminal, but not system wide. I got the same issue, his solution works. – Sapience Aug 26 '15 at 22:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.