Browse Source

Only send cut/copy/paste shortcuts on OSX

JoshEngebretson 10 years ago
parent
commit
b40c0bbebf
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Source/AtomicWebView/UIWebView.cpp

+ 5 - 1
Source/AtomicWebView/UIWebView.cpp

@@ -218,7 +218,9 @@ bool UIWebView::OnEvent(const TBWidgetEvent &ev)
     }
     }
     else if (ev.type == EVENT_TYPE_SHORTCUT)
     else if (ev.type == EVENT_TYPE_SHORTCUT)
     {
     {
-        // These shortcuts are not being invoked with key combinations (Handle KeyDown/KeyUp)
+
+#ifdef ATOMIC_PLATFORM_OSX
+        // On OSX, these shortcuts are not being invoked with key combinations (Handle KeyDown/KeyUp)
         if (ev.ref_id == TBIDC("copy"))
         if (ev.ref_id == TBIDC("copy"))
         {
         {
             webClient_->ShortcutCopy();
             webClient_->ShortcutCopy();
@@ -234,6 +236,8 @@ bool UIWebView::OnEvent(const TBWidgetEvent &ev)
             webClient_->ShortcutCut();
             webClient_->ShortcutCut();
             return true;
             return true;
         }
         }
+#endif
+
 
 
         // Handled by key combinations in Handle KeyDown/KeyUp
         // Handled by key combinations in Handle KeyDown/KeyUp
         /*
         /*