Build fix. KeyScript is deprecated in Leopard, we need a new solution for this <rdar...
authorthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Sep 2006 00:22:53 +0000 (00:22 +0000)
committerthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Sep 2006 00:22:53 +0000 (00:22 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16311 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/bridge/mac/FrameMac.mm

index f5f22ef677b5ec17ce396e462846274a09c432fe..644a54dab63fa60158de2afd6072e3049c477d8f 100644 (file)
@@ -3350,10 +3350,15 @@ void FrameMac::setSecureKeyboardEntry(bool enable)
 {
     if (enable) {
         EnableSecureEventInput();
+// FIXME: KeyScript is deprecated in Leopard, we need a new solution for this <rdar://problem/4727607>
+#if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4
         KeyScript(enableRomanKeyboardsOnly);
+#endif
     } else {
         DisableSecureEventInput();
+#if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4
         KeyScript(smKeyEnableKybds);
+#endif
     }
 }