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