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)
|
if ((e.getCharCode() == '\n' || e.getCharCode() == KEY_ENTER)
|
||||||
&& e.isControlKeyDown()) {
|
&& e.isControlKeyDown()) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
if (post.isEnabled()) {
|
||||||
onPost(null);
|
onPost(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
KeyPressEvent.getType());
|
KeyPressEvent.getType());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user