OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 The Chromium Authors. All rights reserved. | 2 * Copyright 2013 The Chromium Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 var kb = document.getElementById('keyboard'); | 7 var kb = document.getElementById('keyboard'); |
8 | 8 |
9 /** | 9 /** |
10 * Finds the character specified and types it. Assumes that the default | 10 * Finds the character specified and types it. Assumes that the default |
(...skipping 10 matching lines...) Expand all Loading... |
21 key.up({pointerId: 1}); | 21 key.up({pointerId: 1}); |
22 } | 22 } |
23 | 23 |
24 if (kb.isReady()) { | 24 if (kb.isReady()) { |
25 type('a'); | 25 type('a'); |
26 } else { | 26 } else { |
27 kb.addKeysetChangedObserver(function() { | 27 kb.addKeysetChangedObserver(function() { |
28 if (kb.isReady()) | 28 if (kb.isReady()) |
29 type('a'); | 29 type('a'); |
30 }); | 30 }); |
31 } | 31 } |
OLD | NEW |