# Evt\_kill\_focus

**URL:** <https://www.ruby-forum.com/t/evt-kill-focus/148435>\
**Category:** wxRuby\
**Created:** [September 12, 2008, 8:49pm UTC](https://www.ruby-forum.com/t/evt-kill-focus/148435 "2008-09-12T20:49:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericw](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/97f17d/32.png) [@ericw](https://www.ruby-forum.com/u/ericw)\
**Post date:** [September 12, 2008, 8:49pm UTC](https://www.ruby-forum.com/t/evt-kill-focus/148435/1 "2008-09-12T20:49:09Z")

</div>

Something’s wacky with evt\_kill\_focus. It wasn’t firing at all for me.  
It  
disallows passing a Wx id, and supposedly is a catch-all, but it was  
never  
firing. Latest WxRuby. I had to do this to fix it. No idea why this  
works or  
what’s going on, just putting it out there:  
class MyListCtrl \< Wx::ListCtrl  
def initialize(\*args)  
super(\*args)

```
evt_kill_focus { }

```

end  
end
