Fix getting values from input events

This commit is contained in:
Frank A. Krueger 2017-12-09 13:20:33 -08:00
parent e93d28957c
commit 1c21299dd3
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ namespace Ooui
protected override bool TriggerEventFromMessage (Message message)
{
if (message.TargetId == Id && message.MessageType == MessageType.Event && message.Key == "change") {
if (message.TargetId == Id && message.MessageType == MessageType.Event && (message.Key == "change" || message.Key == "input")) {
// Don't need to notify here because the base implementation will fire the event
if (Type == InputType.Checkbox) {
isChecked = message.Value != null ? Convert.ToBoolean (message.Value) : false;