# AccelMap.add\_entry not working for CTRL+TAB

**URL:** <https://www.ruby-forum.com/t/accelmap-add-entry-not-working-for-ctrl-tab/197634>\
**Category:** Ruby-Gnome 2\
**Created:** [October 17, 2010, 11:15pm UTC](https://www.ruby-forum.com/t/accelmap-add-entry-not-working-for-ctrl-tab/197634 "2010-10-17T23:15:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [October 17, 2010, 11:15pm UTC](https://www.ruby-forum.com/t/accelmap-add-entry-not-working-for-ctrl-tab/197634/1 "2010-10-17T23:15:12Z")

</div>

Doing the following seems to have no effect. The default CTRL+TAB  
mapping stays is executed (i.e. changes to another child window).

Gtk::AccelMap.add\_entry(’/switch’, Gdk::Keyval::GDK\_Tab,  
Gdk::Window::CONTROL\_MASK)

I’ve tested with other key combinations and they work fine. I could use  
key\_press\_event but that means I’d have to code a special case just for  
this problem.

Any ideas?

Thanks,  
Phil
