如何重新调整和重新定位Google的虚拟键盘?

时间:2015-03-12 06:43:15

标签: google-api virtual-keyboard

将虚拟键盘放入视野后,我在重新调整键盘大小及其出现位置时遇到了困难。

我的代码:

<script type="text/javascript">
            // Load the Google Onscreen Keyboard API
            google.load("elements", "1", {
                packages: "keyboard"
            });
    function onLoad() {
                var kbd = new google.elements.keyboard.Keyboard(
                  [google.elements.keyboard.LayoutCode.URDU],
                  ['urd']);
            }
    function addOption(selectbox, text, value) {
                var optn = document.createElement("OPTION");
                optn.text = text;
                optn.value = value;
                selectbox.options.add(optn);
            }
    google.setOnLoadCallback(onLoad);
        </script>


 <div class="form-group">Urdu
            <div class="col-md-offset-2 col-md-10">
                <textarea id="urd" style="width: 600px; height: 200px;"></textarea>
            </div>
        </div>

任何人都可以提供帮助,或者非常感谢任何参考。

1 个答案:

答案 0 :(得分:1)

我觉得这很有用,认为这可能有帮助......

  Important: The Google Virtual Keyboard API has been officially deprecated 
as of May 26, 2011. It will continue to work as per our deprecation policy.

See