Merge "ChangeScreen2: Disable Ctrl-Enter while 'Post' is disabled"

This commit is contained in:
Edwin Kempin
2013-12-08 08:43:02 +00:00
committed by Gerrit Code Review

View File

@@ -124,7 +124,9 @@ class ReplyBox extends Composite {
if ((e.getCharCode() == '\n' || e.getCharCode() == KEY_ENTER)
&& e.isControlKeyDown()) {
e.preventDefault();
onPost(null);
if (post.isEnabled()) {
onPost(null);
}
}
}
},