[vlc-commits] commit: skins2: For playlist controls, keys to be forwarded to vlc core ( Erwan Tulou )
git at videolan.org
git at videolan.org
Fri Mar 19 11:55:03 CET 2010
vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Fri Mar 19 11:39:37 2010 +0100| [a88ba4526d03285a10e9abd59b9053c9d6927661] | committer: 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.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a88ba4526d03285a10e9abd59b9053c9d6927661
---
modules/gui/skins2/controls/ctrl_tree.cpp | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/modules/gui/skins2/controls/ctrl_tree.cpp b/modules/gui/skins2/controls/ctrl_tree.cpp
index 31d9cb5..3048254 100644
--- a/modules/gui/skins2/controls/ctrl_tree.cpp
+++ b/modules/gui/skins2/controls/ctrl_tree.cpp
@@ -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();
More information about the vlc-commits
mailing list