Skip to content

Commit

Permalink
Merge pull request #4 from cimm/master
Browse files Browse the repository at this point in the history
Extra configuration options for text fields
  • Loading branch information
qrush committed Jan 29, 2013
2 parents 9ba3ff7 + 22bf154 commit aa44c50
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/motion-settings-bundle/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ def initialize(&block)

def text(title, options = {})
preference(title, "PSTextFieldSpecifier", options, {
"IsSecure" => false,
"KeyboardType" => "Alphabet",
"AutoCapitalizationType" => "Sentences",
"AutocorrectionType" => "Default"
"IsSecure" => options[:secure] || false,
"KeyboardType" => options[:keyboard] || "Alphabet",
"AutocapitalizationType" => options[:autocapitalization] || "Sentences",
"AutocorrectionType" => options[:autocorrection] || "Default"
})
end

Expand Down

0 comments on commit aa44c50

Please sign in to comment.