Skip to content

Commit

Permalink
Merge branch 'master' into scancodes-packerisms
Browse files Browse the repository at this point in the history
  • Loading branch information
aw committed Oct 5, 2014
2 parents f8a51d1 + 9779154 commit 28841a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/veewee/provider/core/helper/scancode.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def self.string_to_keycode(thestring)
until thestring.length == 0
nospecial=true;
@@special_keys.keys.each { |key|
if thestring.start_with?(key)
if thestring.match(/^#{key}/i)
#take thestring
#check if it starts with a special key + pop special string
keycodes=keycodes+@@special_keys[key]+' ';
Expand Down

0 comments on commit 28841a4

Please sign in to comment.