spec/ruco/keyboard_spec.rb in ruco-0.0.24 vs spec/ruco/keyboard_spec.rb in ruco-0.0.25
- old
+ new
@@ -83,6 +83,13 @@
it "returns key-code for unprintable keys" do
type [11121, 324234]
output.should == [11121, 324234]
end
+
+ it "recognises weird key combos" do
+ type [27, 91, 49, 59, 50, 65]
+ output.should == [:"Shift+up"]
+ type [27, 91, 49, 59, 50, 66]
+ output.should == [:"Shift+down"]
+ end
end
\ No newline at end of file