English 中文(简体)
• 如何检查某些用户在使用“S”的输入文本箱中是否采用了CTRL+S(控制+s)?
原标题:How can i check if someuser typed CTRL+S (control+s) in input textbox using php?

如何检查某些用户在使用实验室输入工具箱中的CTRL+S(控制+)类型?

检查这一主要板块,是否显示当地特性或像数学符号这样的单码特性?

How can I do it? Do I have to do it using javascript/jquery?

Suppose I have the mapping for unicode characters with some keyboad mapping, During submitting the data to server do I have to check the mapping of that typed character using PHP?

想在博客中评论一个职位。

最佳回答

利用JQuery(如上文PHP所述,只是供职)

$(document).keypress("s",function(e) {
  if(e.ctrlKey)
    alert("do something");
});
问题回答

你们可以不使用购买力平价。 这是在“ j”图书馆的解决办法。

$(window).keypress(function(event) {
if (!(event.which == 115 && event.ctrlKey) && !(event.which == 19)) return true;
alert("Ctrl-S pressed");
event.preventDefault();
return false;
});




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签