Example #1
0
 keyContainingMouseDidChange: function () {
     var style = keyboardToolTipNode.style;
     if (this.keyContainingMouse.model === null) {
         keyboardToolTipNode$.removeClass('keyboardToolTipVisible') .addClass('keyboardToolTipHidden');
     } else {
         this.keyboardToolTipKeyModel = this.keyContainingMouse.model;
         keyboardToolTipNode$.addClass('keyboardToolTipVisible') .removeClass('keyboardToolTipHidden');
         var point = [
             this.keyContainingMouse.anchor[0] - 21 - keyboardScroller.scrollLeft,
             this.keyContainingMouse.anchor[1] ];
         style.webkitTransform = style.MozTransform = style.transform = u.format('translate({0}px,{1}px)', point);
     }
 },
Example #2
0
 keyboards.labelSetIds.forEach(function (id) {
     html += u.format('<option value="{id}">{name}</option>', {
         id: id,
         name: keyboards.humanNameForLabelSetId(id)
     });
 }, this);