我正在开发一款剑道手机应用。在这里,我有一个文本框,它被页面init强制聚焦。但问题是,当输入集中时,我不需要键盘成为流行音乐。此外,我需要光标闪烁。Focus工作得很好,但我很难执行键盘隐藏。我试过只读,没有闪烁光标。
function FocusText(){
$('#f_text_box').focus();
/*How to hide the keyboard*/
}
我已经在Linux中创建了一个Python程序,它可以使NumLock发光二极管闪烁。代码如下所示:
import fcntl
import os
import time
# Define variables for keyboard and NUM_LOCK LED
KDSETLED = 0x4B32
NUM_LED = 0x02
# Open the "keyboard console" for LED toggling
console_fd = os.open('/dev/console', os.O_NOCTTY)
def blink(tme, c