EN -
http://custom.simplemachines.org/mods/index.php?mod=1807PT
http://comunidade.smfpt.net/index.php/topic,4710.msg12113/topicseen.html#msg12113Mod Para 1.1.x série. 2.0.x
/Themes/default/
Login.template.php<td><input type="password" name="passwrd" value="', $context['default_password'], '" size="20" /></td>
<td><input type="password" name="passwrd" value="', $context['default_password'], '" size="20" onkeypress="capsLock(event,\'login_screen\')" /> <div class="error" style="visibility:hidden" id="login_screen">', $txt['capslock_warning'], '</div></td>
/
index.template.php</head>
<script language="JavaScript" type="text/javascript">
function capsLock(e,div){
keyCode = e.keyCode?e.keyCode:e.which;
shiftKey = e.shiftKey?e.shiftKey:((keyCode == 16)?true:false);
if(((keyCode >= 65 && keyCode <= 90) && !shiftKey)||((keyCode >= 97 && keyCode <= 122) && shiftKey))
document.getElementById(div).style.visibility = \'visible\';
else
document.getElementById(div).style.visibility = \'hidden\';
}
</script>
</head>
<input type="password" name="passwrd" size="10" />
<input type="password" name="passwrd" size="10" onkeypress="capsLock(event,\'quick_login\')" />
<input type="hidden" name="hash_passwrd" value="" />
<input type="hidden" name="hash_passwrd" value="" />
<div class="error" style="visibility:hidden" id="quick_login">', $txt['capslock_warning'], '</div>
/Themes/default/languages/
Modifications.teuidioma.php?>
// Caps Lock detection on Login Mod by Nas translate candidosa2
$txt['capslock_warning'] = 'O Caps Lock está activado.';
// End Caps Lock detection on Login Mod by Nas suporte smfpt