Sha256: e32178e9698773ebfa7c72c03f19261ff146acac71ac382f58b844f7916b3605

Contents?: true

Size: 464 Bytes

Versions: 74

Compression:

Stored size: 464 Bytes

Contents

module Redcar
  class EditView
    module Actions
      class EscapeHandler
        def self.handle(edit_view, modifiers)
          return false if Redcar.app.focussed_window.speedbar
          return false if modifiers.any?
          # on osx menu items with "Escape" as their keybinding don't seem to activate correctly
          return false if Redcar.platform != :osx
          AutoCompleter::AutoCompleteCommand.new.run
        end
      end
    end
  end
end

Version data entries

74 entries across 74 versions & 2 rubygems

Version Path
redcar-0.9.0 plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-0.8.1 plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-0.8 plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-0.7 plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-0.6.1 plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-0.6 plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-0.6.1dev plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-0.5.1 plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-0.5 plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-0.5.6dev plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-0.5.5dev plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-0.5.4dev plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-0.5.3dev plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-0.5.2dev plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-0.5.1dev plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-0.4.1 plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-0.4 plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-0.3.10.1dev plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-0.3.10.0dev plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-0.3.9 plugins/edit_view/lib/edit_view/actions/esc.rb