OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * The repeat delay in milliseconds before a key starts repeating. Use the | 6 * The repeat delay in milliseconds before a key starts repeating. Use the |
7 * same rate as Chromebook. | 7 * same rate as Chromebook. |
8 * (See chrome/browser/chromeos/language_preferences.cc) | 8 * (See chrome/browser/chromeos/language_preferences.cc) |
9 * @const | 9 * @const |
10 * @type {number} | 10 * @type {number} |
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 enterUpperOnSpace = this.shouldUpperOnSpace(); | 739 enterUpperOnSpace = this.shouldUpperOnSpace(); |
740 break; | 740 break; |
741 default: | 741 default: |
742 enterUpperOnSpace = false; | 742 enterUpperOnSpace = false; |
743 break; | 743 break; |
744 } | 744 } |
745 // Reset control keys. | 745 // Reset control keys. |
746 this.onNonControlKeyTyped(); | 746 this.onNonControlKeyTyped(); |
747 }, | 747 }, |
748 | 748 |
749 /* | 749 /** |
750 * Handles key-longpress event that is sent by kb-key-base. | 750 * Handles key-longpress event that is sent by kb-key-base. |
751 * @param {CustomEvent} event The key-longpress event dispatched by | 751 * @param {CustomEvent} event The key-longpress event dispatched by |
752 * kb-key-base. | 752 * kb-key-base. |
753 * @param {Object} detail The detail of pressed key. | 753 * @param {Object} detail The detail of pressed key. |
754 */ | 754 */ |
755 keyLongpress: function(event, detail) { | 755 keyLongpress: function(event, detail) { |
756 // If the gesture is long press, remove the pointermove listener. | 756 // If the gesture is long press, remove the pointermove listener. |
757 this.removeEventListener('pointermove', this.swipeHandler, false); | 757 this.removeEventListener('pointermove', this.swipeHandler, false); |
758 // Keyset transtion key. | 758 // Keyset transtion key. |
759 if (this.changeKeyset(detail)) { | 759 if (this.changeKeyset(detail)) { |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
968 keyboardLoaded(); | 968 keyboardLoaded(); |
969 return true; | 969 return true; |
970 } | 970 } |
971 } | 971 } |
972 } | 972 } |
973 if (keysetsLoaded) | 973 if (keysetsLoaded) |
974 console.error('No default keyset found for ' + this.layout); | 974 console.error('No default keyset found for ' + this.layout); |
975 return false; | 975 return false; |
976 } | 976 } |
977 }); | 977 }); |
OLD | NEW |