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.13 plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-dev-0.13.5dev plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-dev-0.13.4dev plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-dev-0.13.3dev plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-dev-0.13.2dev plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-dev-0.13.1dev plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-0.12.1 plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-dev-0.13.0dev plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-0.12 plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-dev-0.12.27dev plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-dev-0.12.26dev plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-dev-0.12.25dev plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-dev-0.12.24dev plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-dev-0.12.23dev plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-dev-0.12.22dev plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-dev-0.12.21dev plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-dev-0.12.20dev plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-dev-0.12.19dev plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-dev-0.12.18dev plugins/edit_view/lib/edit_view/actions/esc.rb
redcar-dev-0.12.17dev plugins/edit_view/lib/edit_view/actions/esc.rb