Fixed and closed #481: TAB now focuses editor window.

This commit is contained in:
Dario Solera 2010-02-02 10:16:39 +00:00
parent 5fee035fbe
commit ce3179b525
4 changed files with 24 additions and 5 deletions

View file

@ -16,5 +16,5 @@ using System.Reflection;
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("3.0.1.468")]
[assembly: AssemblyFileVersion("3.0.1.468")]
[assembly: AssemblyVersion("3.0.1.469")]
[assembly: AssemblyFileVersion("3.0.1.469")]

View file

@ -191,6 +191,15 @@
if(__GetServerElementById("btnNewCategory")) {
__GetServerElementById("btnNewCategory").onclick = __SetSubmitted;
}
$(function() {
$("#<%= txtTitle.ClientID %>").focus().keydown(function(event) {
if(event.keyCode == 9 /* TAB */) {
event.preventDefault();
__FocusEditorWindow();
}
});
});
// -->
</script>

View file

@ -114,6 +114,11 @@
if(elem) elem.style["height"] = cookieValue;
}
}
function __FocusEditorWindow() {
$("#<%= txtMarkup.ClientID %>").focus();
$("#iframe").focus();
}
// -->
</script>

View file

@ -26,9 +26,14 @@
<script type="text/javascript">
<!--
var subj = __GetServerElementById("txtSubject");
if(subj.value == "") subj.focus();
else __GetServerElementById("txtBody").focus();
$(function() {
$("#<%= txtSubject.ClientID %>").focus().keydown(function(event) {
if(event.keyCode == 9 /* TAB */) {
event.preventDefault();
__FocusEditorWindow();
}
});
});
// -->
</script>