Skip to content

Commit

Permalink
EranMes: Addressing review comments. Adding a method to get the modif…
Browse files Browse the repository at this point in the history
…iers state from the keyboard, to be shared with the mouse.

r17656
  • Loading branch information
eranmes committed Aug 10, 2012
1 parent 0ab16ff commit 42c1534
Show file tree
Hide file tree
Showing 3 changed files with 254 additions and 243 deletions.
11 changes: 11 additions & 0 deletions javascript/atoms/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -734,3 +734,14 @@ bot.Keyboard.prototype.moveCursor = function(element) {
bot.Keyboard.prototype.getState = function() {
return this.pressed_.getValues();
};


/**
* Returns the state of the modifier keys, to be shared with other input
* devices.
*
* @return {bot.Device.ModifiersState} Modifiers state.
*/
bot.Keyboard.prototype.getModifiersState = function() {
return this.modifiersState
};
2 changes: 1 addition & 1 deletion javascript/atoms/test/keyboard_test.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<title>keyboard_test</title>
<script src="test_bootstrap.js"></script>
<script type="text/javascript">
goog.require('bot.Device');
goog.require('bot.Keyboard');
goog.require('bot.Keyboard.Key');
goog.require('bot.Device');
goog.require('bot.action');
goog.require('goog.events');
goog.require('goog.testing.AsyncTestCase');
Expand Down
Loading

0 comments on commit 42c1534

Please sign in to comment.