Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

2 Answers 2

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

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.