home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
How to cancel an OnAction trigger
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="BartEv" data-source="post: 1056933" data-attributes="member: 79028"><p>Is there a way to prevent a certain Action Event from being handled further?</p><p></p><p>Like in this example, i would like certain keys preventing to be actually handled by MP.</p><p></p><p>[CODE] </p><p> public override void OnAction(Action action) {</p><p> switch (action.wID) {</p><p> case Action.ActionType.ACTION_KEY_PRESSED:</p><p> if (action.m_key.KeyChar == '0') {</p><p> /* How to stop this action, so it is not handled by MP */</p><p> }</p><p> break; </p><p> }</p><p>} </p><p>[/CODE]</p><p></p><p>Thx...</p></blockquote><p></p>
[QUOTE="BartEv, post: 1056933, member: 79028"] Is there a way to prevent a certain Action Event from being handled further? Like in this example, i would like certain keys preventing to be actually handled by MP. [CODE] public override void OnAction(Action action) { switch (action.wID) { case Action.ActionType.ACTION_KEY_PRESSED: if (action.m_key.KeyChar == '0') { /* How to stop this action, so it is not handled by MP */ } break; } } [/CODE] Thx... [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
How to cancel an OnAction trigger
Contact us
RSS
Top
Bottom