                         // assuming the text is centered within the field
                         var highlight :Bitmap = new Bitmap(_highlightData);
                         addChildAt(_highlights[idx] = highlight, 0);
-                        var bounds :Rectangle = _field.getCharBoundaries(0);
-                        highlight.x = _field.x + bounds.width*xx +
-                            (_field.width - bounds.width*_width)/2;
-                        highlight.y = _field.y + bounds.height*yy +
-                            (_field.height - bounds.height*_height)/2;
+                        var cbounds :Rectangle = _field.getCharBoundaries(0);
+                        highlight.x = _field.x + cbounds.width*xx +
+                            (_field.width - cbounds.width*_width)/2;
+                        highlight.y = _field.y + cbounds.height*yy +
+                            (_field.height - cbounds.height*_height)/2;
                        _field.setTextFormat(_litFormat, tidx, tidx + 1);
                     } else {
                         removeChild(_highlights[idx]);

        text = " " + text + " ";
        var bounds :Rectangle = new Rectangle(
            int((_width - text.length - 2) / 2), int(_height/2), text.length + 2, 3);
        var window :Window = new Window(int.MAX_VALUE, int.MAX_VALUE, bounds, "#");
        for (var ii :int = 0; ii < text.length; ii++) {
            window.contents[text.length + 3 + ii] = int(text.charCodeAt(ii));
        }
        addWindow(window);
        updateDisplay(bounds);
    }

    /**

            return;
        }
        _socket.writeShort(6);
        _socket.writeShort(event.type == KeyboardEvent.KEY_DOWN ? KEY_PRESSED : KEY_RELEASED);
        _socket.writeUnsignedInt(getQtKeyCode(event));
    }

