#include "stdafx.h"
#include <Windows.h>
int _tmain(int argc, _TCHAR* argv[])
{
if (RegisterHotKey(
NULL,
1,
MOD_ALT | MOD_NOREPEAT,
0x42)) //0x42 is 'b'
{
_tprintf(_T("Hotkey 'ALT+b' registered, using MOD_NOREPEAT flag\n"));
}
MSG msg = {0};
while (GetMessage(&msg, NULL, 0, 0) != 0)
{
if (msg.message == WM_HOTKEY)
{
_tprintf(_T("WM_HOTKEY received\n"));
}
}
return 0;
}JS
$('textarea').keyup(function(e) {
if((e.ctrlKey && (e.which == 13 || e.which == 10)) || (e.altKey && e.which == 83)) {
//Ctrl+Enter执行
return false;
}
if(e.which == 13){ //输入回车键
var h = $(this)[0].scrollHeight;
if(h <= 100) {
return true;
} else {
$(this).height($(this)[0].scrollHeight);
return true;
}
}
mixreal
发表于 2017-6-28
支持!
评论列表
加载数据中...
lvdan
发表于 2018-7-5
<?php if(strstr($public_r['usetags'],','.$modid.',')) { $infotag_readonly=''; $infotag_copykeyboard=' <input type="button" name="Submit3" value="复制关键字" onclick="document.add.infotags.value=document.add.keyboard.value;">'; if(strstr($public_r['chtags'],','.$modid.',')) { $infotag_readonly=' readonly'; $infotag_copykeyboard=''; } ?> <tr> <td height="25" bgcolor="#FFFFFF">TAGS : <input name="infotags" type="text" id="infotags" value="<?=$r[infotags]?>" size="32"<?=$infotag_readonly?>> <input type="button" name="Submit" value="选择" onclick="window.open('tags/ChangeTags.php?form=add&field=infotags<?=$ecms_hashur['ehref']?>','','width=700,height=550,scrollbars=yes');"> <?=$infotag_copykeyboard?> <input name="oldinfotags" type="hidden" id="oldinfotags" value="<?=$r[infotags]?>"> <font color="#333333">(多个用","逗号格开)</font></td> </tr> <?php } ?>评论列表
加载数据中...
哄着自己玩
发表于 2018-7-6
<?php if(strstr($public_r['usetags'],','.$modid.',')) { $infotag_readonly=''; $infotag_copykeyboard=' <input type="button" name="Submit3" value="复制关键字" onclick="document.add.infotags.value=document.add.keyboard.value;">'; if(strstr($public_r['chtags'],','.$modid.',')) { $infotag_readonly=' readonly'; $infotag_copykeyboard=''; } ?> <tr> <td height="25" bgcolor="#FFFFFF">TAGS : <input name="infotags" type="text" id="infotags" value="<?=$r[infotags]?>" size="32"<?=$infotag_readonly?>> <input type="button" name="Submit" value="选择" onclick="window.open('tags/ChangeTags.php?form=add&field=infotags<?=$ecms_hashur['ehref']?>','','width=700,height=550,scrollbars=yes');"> <?=$infotag_copykeyboard?> <input name="oldinfotags" type="hidden" id="oldinfotags" value="<?=$r[infotags]?>"> <font color="#333333">(多个用","逗号格开)</font></td> </tr> <?php } ?>评论列表
加载数据中...
tanem
发表于 2023-1-25
评论列表
加载数据中...
tanem
发表于 2023-1-25
高亮怎么没用
评论列表
加载数据中...