mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Wall: Add ability to send posts and comments by Ctrl + Enter
Closes #67
This commit is contained in:
parent
d71613d47c
commit
f80f8f09cc
1 changed files with 5 additions and 0 deletions
|
@ -117,3 +117,8 @@ function setupWallPostInputHandlers(id) {
|
|||
// textArea.style.height = (newHeight > originalHeight ? (newHeight + boost) : originalHeight) + "px";
|
||||
});
|
||||
}
|
||||
|
||||
u("#write > form").on("keydown", function(event) {
|
||||
if(event.ctrlKey && event.keyCode === 13)
|
||||
this.submit();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue