code/01rwdcore/jumplinkcommand.rb in rwdgutenberg-0.12 vs code/01rwdcore/jumplinkcommand.rb in rwdgutenberg-0.13

- old
+ new

@@ -1,5 +1,6 @@ +# Application RwdTinker orginally (c) 2004 Steven Gibson under GPL. # Bind message passing socket to rwdtinker application locationlink = { :helpscreen=> "runhelpwindow", :tinkerbackwindow=>"runrwdtinkerbackwindow", @@ -8,14 +9,23 @@ :editconfiguration=>"runeditconfiguration" } locationlink.each { |kk, vv| JumpLink[kk] = vv } def runjumplinkcommand -if @a_jumplinkinput -runjumplocation = "#{JumpLink[:"#{@a_jumplinkinput}"]}" + + if TabHash.has_key? JumpLink[:"#{@a_jumplinkinput}"].intern + + + @rwd_window = TabHash.fetch(JumpLink[:"#{@a_jumplinkinput}"].intern) + @rwd_tab = JumpLink[:"#{@a_jumplinkinput}"] + + else + + runjumplocation = "#{JumpLink[:"#{@a_jumplinkinput}"]}" -self.send(runjumplocation) - end + self.send(runjumplocation) + end + end # list the remote control options on the screen def showjumplinkoptions