Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Bug 1019993 - Correct compositekey to compositeKey
Browse files Browse the repository at this point in the history
Replace compositekey with compositeKey to follow interCaps coding
style guidelines.
  • Loading branch information
Raniere Silva committed Jun 9, 2014
1 parent 9826ce7 commit 1d4f8c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions apps/keyboard/js/keyboard.js
Expand Up @@ -954,7 +954,7 @@ function hideAlternatives() {
// Test if an HTML node is a normal key
function isNormalKey(key) {
var keyCode = parseInt(key.dataset.keycode);
return keyCode || key.dataset.selection || key.dataset.compositekey;
return keyCode || key.dataset.selection || key.dataset.compositeKey;
}

//
Expand Down Expand Up @@ -1412,10 +1412,10 @@ function endPress(target, coords, touchId, hasCandidateScrolled) {

// Normal key
default:
if (target.dataset.compositekey) {
if (target.dataset.compositeKey) {
// Keys with this attribute set send more than a single character
// Like ".com" or "2nd" or (in Catalan) "l·l".
var compositeKey = target.dataset.compositekey;
var compositeKey = target.dataset.compositeKey;
for (var i = 0; i < compositeKey.length; i++) {
inputMethodManager.currentIMEngine.click(compositeKey.charCodeAt(i));
}
Expand Down
4 changes: 2 additions & 2 deletions apps/keyboard/js/render.js
Expand Up @@ -243,7 +243,7 @@ const IMERender = (function() {
dataset.push({'key': 'keycode', 'value': code});
dataset.push({'key': 'keycodeUpper', 'value': upperCode});
if (key.compositeKey) {
dataset.push({'key': 'compositekey', 'value': key.compositeKey});
dataset.push({'key': 'compositeKey', 'value': key.compositeKey});
}

var attributeList = [];
Expand Down Expand Up @@ -617,7 +617,7 @@ const IMERender = (function() {
{ 'key': 'keycode', 'value': alt.charCodeAt(0) },
{ 'key': 'keycodeUpper', 'value': alt.toUpperCase().charCodeAt(0) }
] :
[{'key': 'compositekey', 'value': alt}];
[{'key': 'compositeKey', 'value': alt}];

// Make each of these alternative keys 75% as wide as the key that
// it is an alternative for, but adjust for the relative number of
Expand Down

0 comments on commit 1d4f8c1

Please sign in to comment.