Sha256: 6294de9536ceda9b6ad60a5e9a751a43d9b992c4d6db6d7bdb5a8b82e99e99e8

Contents?: true

Size: 348 Bytes

Versions: 3

Compression:

Stored size: 348 Bytes

Contents

require "karabiner/xml_tree"

class Karabiner::Vkopenurldef
  include Karabiner::XmlTree

  def initialize(application)
    name = Karabiner::Property.new("name", "KeyCode::VK_OPEN_URL_APP_#{application.gsub(/ /, "_")}")
    url  = Karabiner::Property.new("url", "/Applications/#{application}.app", type: "file")
    add_child(name, url)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
karabiner-0.1.2 lib/karabiner/vkopenurldef.rb
karabiner-0.1.1 lib/karabiner/vkopenurldef.rb
karabiner-0.1.0 lib/karabiner/vkopenurldef.rb