lib/mdv/markdown_viewer.rb in mdv-0.1.6 vs lib/mdv/markdown_viewer.rb in mdv-0.1.7
- old
+ new
@@ -25,10 +25,10 @@
@win.signal_connect('destroy') { Gtk.main_quit }
end
def connect_key_press_event_signal
@win.signal_connect 'key-press-event' do |_wdg, evt, _ud|
- handle_key(evt) if evt.state == :control_mask
+ handle_key(evt) if evt.state[:control_mask]
false
end
end
def handle_key(evt)