提案 #1271 » openimg-esc.patch
core/plugin/openimg/window.rb | ||
---|---|---|
10 | 10 |
@image_surface = loading_surface |
11 | 11 |
@next_opener = next_opener |
12 | 12 |
window_settings |
13 |
ssc :key_release_event do |_, ev| |
|
14 |
destroy if ::Gtk::keyname([ev.keyval, ev.state]) == 'Escape' |
|
15 |
end |
|
13 | 16 |
ssc(:destroy, &:destroy) |
14 | 17 |
end |
15 | 18 |