Home  >  Article  >  Web Front-end  >  Improve UCHOME's record publishing and enhance accessibility user experience_javascript skills

Improve UCHOME's record publishing and enhance accessibility user experience_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:11:481045browse

Find the file space_feed.htm in the template and replace the method definition with:

Copy the code The code is as follows:

function closeOpt(key,evt)
{
if (evt.keyCode == 9) {
$('message_menu').style.display = 'none';
}
else if (evt.keyCode == 13 && (evt.ctrlKey == true || evt.altKey == true)) {
poststatus();
$('mood_message').blur( );
}
}
function inputKeyDown(event) {
var e = event.keyCode ? event.keyCode : event.which;
if((e == 38 || e == 40 || e == 13) && $('message_menu').style.display!='none'){
doane(event);
}
}

UCHOME records can be published to enhance accessibility by using Ctrl Enter or Alt Enter
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn