Home > Web Front-end > JS Tutorial > 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
Release: 2016-05-16 18:11:48
Original
1066 people have browsed it

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
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template