# Key bindings for specific widgets

**URL:** <https://www.ruby-forum.com/t/key-bindings-for-specific-widgets/110707>\
**Category:** Ruby-Gnome 2\
**Created:** [July 30, 2007, 1:14am UTC](https://www.ruby-forum.com/t/key-bindings-for-specific-widgets/110707 "2007-07-30T01:14:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/db5fbb/32.png) [@alex](https://www.ruby-forum.com/u/alex)\
**Post date:** [July 30, 2007, 1:14am UTC](https://www.ruby-forum.com/t/key-bindings-for-specific-widgets/110707/1 "2007-07-30T01:14:30Z")

</div>

Hi, I’m wondering how one normally adds key bindings for specific  
widgets using ruby-gtk… I’m pretty new to gtk in general.

Basically, I’m wanting to set up a key binding for adding a new  
element to a tree model [and having this add reflected in the  
appropriate treeview]

Eventually I’d like to be able to have an .rc file or something that  
defines the key bindings for my whole application, but I figured I’d  
start small.

Thanks,  
Alex

* * *

This [SF.net](http://SF.net) email is sponsored by: Splunk Inc.  
Still grepping through log files to find problems? Stop.  
Now Search log events and configuration files using AJAX and a browser.  
Download your FREE copy of Splunk now \>\> [http://get.splunk.com/](http://get.splunk.com/)
