issue #11 채널 번호로 선택하기에서 창 뜨고나서 위로 눌렀을때 오동작 하는 문제 해결.

This commit is contained in:
Paul Kim
2023-10-06 19:14:36 +09:00
parent 6164fde6c8
commit 94863d094a

View File

@@ -3215,20 +3215,13 @@ HotelTV.ui_appfull = (function() {
if ( _elTvScutRoot.css('display') != 'none') { if ( _elTvScutRoot.css('display') != 'none') {
_elTvScutRoot.fadeOut(500); _elTvScutRoot.fadeOut(500);
// _elTvScutRoot.fadeOut(500, function(){
// _state.tv.shortkey = {
// "idx": "1",
// "scroll_offset": 0,
// "ch_item_idx": 1,
// };
// });
} }
} }
else if ( _action=="move" ) else if ( _action=="move" )
{ {
if ( _keyCode == gRmtKey.up || _keyCode==gRmtKey.chup ) { if ( _keyCode == gRmtKey.up || _keyCode==gRmtKey.chup ) {
let selectedTblItem = _elTvScutChlistRecord.children('tr.active').prev("#record tr"); let selectedTblItem = _elTvScutChlistRecord.children('tr.active').prev("#record tr");
_state.tv.shortkey.ch_item_idx = Number(selectedTblItem.children(".scitem").attr("item_idx"));
if (selectedTblItem.length) { if (selectedTblItem.length) {
_elTvScutChlistRecord.children('tr.active').removeClass("active"); _elTvScutChlistRecord.children('tr.active').removeClass("active");
selectedTblItem.addClass('active'); selectedTblItem.addClass('active');
@@ -3244,7 +3237,7 @@ HotelTV.ui_appfull = (function() {
} }
} else if ( _keyCode == gRmtKey.down || _keyCode==gRmtKey.chdown ) { } else if ( _keyCode == gRmtKey.down || _keyCode==gRmtKey.chdown ) {
let selectedTblItem = _elTvScutChlistRecord.children('tr.active').next("#record tr"); let selectedTblItem = _elTvScutChlistRecord.children('tr.active').next("#record tr");
_state.tv.shortkey.ch_item_idx = Number(selectedTblItem.children(".scitem").attr("item_idx"));
if (selectedTblItem.length) { if (selectedTblItem.length) {
_elTvScutChlistRecord.children('tr.active').removeClass("active"); _elTvScutChlistRecord.children('tr.active').removeClass("active");
selectedTblItem.addClass('active'); selectedTblItem.addClass('active');