Commit a88ba452 authored by Erwan Tulou's avatar Erwan Tulou

skins2: For playlist controls, keys to be forwarded to vlc core

the playlist control entirely redefines key processing (arrows, enter, ...).
Yet, for keys not processed, forwarding them to vlc core is desirable.
For instance, that enables n(ext) and p(revious) when focus is on the playlist,
which is something users can expect to be working.
parent fb1ba080
......@@ -329,6 +329,14 @@ void CtrlTree::handleEvent( EvtGeneric &rEvent )
notifyLayout();
return;
}
else
{
// other keys to be forwarded to vlc core
EvtKey& rEvtKey = (EvtKey&)rEvent;
var_SetInteger( getIntf()->p_libvlc, "key-pressed",
rEvtKey.getModKey() );
return;
}
for( it = m_flat ? m_rTree.firstLeaf() : m_rTree.begin();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment