summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Native/Dialog.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Native/Dialog.cs')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Native/Dialog.cs35
1 files changed, 0 insertions, 35 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Native/Dialog.cs b/Xamarin.Forms.Platform.Tizen/Native/Dialog.cs
index c59755f7..6d1dde16 100644
--- a/Xamarin.Forms.Platform.Tizen/Native/Dialog.cs
+++ b/Xamarin.Forms.Platform.Tizen/Native/Dialog.cs
@@ -25,11 +25,6 @@ namespace Xamarin.Forms.Platform.Tizen.Native
}
/// <summary>
- /// Occurs when the hardware Back button is pressed.
- /// </summary>
- public event EventHandler BackButtonPressed;
-
- /// <summary>
/// Occurs whenever the dialog is first displayed.
/// </summary>
public event EventHandler Shown;
@@ -155,8 +150,6 @@ namespace Xamarin.Forms.Platform.Tizen.Native
ApplyButton(ButtonPosition.Negative, null);
ApplyContent(null);
- UngrabBackKey();
-
base.OnUnrealize();
}
@@ -166,7 +159,6 @@ namespace Xamarin.Forms.Platform.Tizen.Native
/// <remarks>When shown, the dialog will register itself for the back key press event handling.</remarks>
protected virtual void OnShown()
{
- GrabBackKey();
}
/// <summary>
@@ -175,7 +167,6 @@ namespace Xamarin.Forms.Platform.Tizen.Native
/// <remarks>When dismissed, the dialog will unregister itself from the back key press event handling.</remarks>
protected virtual void OnDismissed()
{
- UngrabBackKey();
}
/// <summary>
@@ -199,15 +190,6 @@ namespace Xamarin.Forms.Platform.Tizen.Native
{
OnShown();
};
-
- // Adds a handler for the KeyUp event.
- // The handler checks whether the key just pressed is a back key
- // and if that is the case, invokes the back button press handler of this instance.
- KeyUp += (s, e) =>
- {
- if (e.KeyName == EvasKeyEventArgs.PlatformBackButtonName)
- BackButtonPressed?.Invoke(this, EventArgs.Empty);
- };
}
/// <summary>
@@ -262,22 +244,5 @@ namespace Xamarin.Forms.Platform.Tizen.Native
SetPartContent("default", _content, true);
}
-
- /// <summary>
- /// Registers this instance to be affected by pressing the hardware back key.
- /// </summary>
- void GrabBackKey()
- {
- KeyGrab(EvasKeyEventArgs.PlatformBackButtonName, true);
- }
-
- /// <summary>
- /// Unregisters this instance from being affected by pressing the hardware back key.
- /// </summary>
- void UngrabBackKey()
- {
- KeyUngrab(EvasKeyEventArgs.PlatformBackButtonName);
- }
-
}
}