Merge "ChangeScreen2: Disable Ctrl-Enter while 'Post' is disabled"
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user