操作
提案 #1456
完了Yuto Tokunaga さんが4年以上前に更新
ついでにプラグイン置いときます
Plugin.create :jump_to_top do
filter_keypress do |key, widget, executed|
notice "#{key} #{widget} #{executed}"
next [key, widget, executed] unless widget.is_a?(Plugin::GUI::Tab) \
&& key == 'Button 1 Double Click'
timeline = widget.children.find { |w| w.is_a? Plugin::GUI::Timeline }
commands, = Plugin.filtering :command, Hash.new
event = Plugin::GUI::Event.new(widget: timeline)
commands[:timeline_scroll_to_top][:exec].(event)
executed = true
[key, widget, executed]
end
end
操作