# File FXWindow.rb, line 259 def addHotKey(code) accel = nil win = self while win && (accel = win.accelTable).nil? win = win.parent end if accel accel.addAccel(code, self, MKUINT(ID_HOTKEY, SEL_KEYPRESS), MKUINT(ID_HOTKEY, SEL_KEYRELEASE)) end end