Detect covers on smartphones

I want to detect caps on smartphones, they have a small arrow, which is basically a capsule.

I tried to find it, all I could do was do it on the desktop ie:

$('input').keypress(function(e) { 
  var s = String.fromCharCode( e.which ); 
  if ( s.toUpperCase() === s && s.toLowerCase() !== s && !e.shiftKey ) { 
    alert('caps is on');
  }
});

But this does not work on smartphones, how can I achieve this or is it possible?

+4
source share
1 answer

HTML/JavaScript/jQuery. , , , , HTML/JavaScript/jQuery. , Google Chrome Android ( Android) , 0, , . , , , .

, /, . iOS, Windows Phone 8 Android, , , .

, -, , PhoneGap, PhoneGap, JavaScript/jQuery.

0

All Articles