[NUI] Handle XF86KeyPressed in BackKeyManager (#2048)
authorstanluk <lukasz.stanislawski@gmail.com>
Thu, 8 Oct 2020 08:16:50 +0000 (10:16 +0200)
committerGitHub <noreply@github.com>
Thu, 8 Oct 2020 08:16:50 +0000 (17:16 +0900)
In Tizen iot-headed the WM dispatches 'XF86Back' event
instead of 'Back'.

Co-authored-by: dongsug-song <35130733+dongsug-song@users.noreply.github.com>
src/Tizen.NUI/src/internal/BackKeyManager.cs

index 0b9b4a7..1c27c9a 100644 (file)
@@ -122,7 +122,7 @@ namespace Tizen.NUI
 
         private void OnWindowKeyEvent(object source, Window.KeyEventArgs args)
         {
-            if(args.Key.State == Key.StateType.Up && args.Key.KeyPressedName == "Back")
+            if(args.Key.State == Key.StateType.Up && (args.Key.KeyPressedName == "Back" || args.Key.KeyPressedName == "XF86Back"))
             {
                 View top = null;