+2007-05-03 Adele Peterson <adele@apple.com>
+
+ Reviewed by Tim Hatcher.
+
+ Fix for <rdar://problem/4727607> REGRESSION: KeyScript is deprecated, need a new solution for forcing Roman input for password fields on Leopard
+
+ * page/mac/FrameMac.mm: (WebCore::Frame::setUseSecureKeyboardEntry):
+ Use TSMSetDocumentProperty and TSMRemoveDocumentProperty on Leopard disable and enable non-ascii input sources.
+
2007-05-03 Brady Eidson <beidson@apple.com>
Reviewed by Anders
return;
if (enable) {
EnableSecureEventInput();
- // FIXME: Since 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);
+#else
+ CFArrayRef inputSources = TISCreateASCIICapableInputSourceList();
+ TSMSetDocumentProperty(TSMGetActiveDocument(), kTSMDocumentEnabledInputSourcesPropertyTag, sizeof(CFArrayRef), &inputSources);
+ CFRelease(inputSources);
#endif
} else {
DisableSecureEventInput();
#if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4
KeyScript(smKeyEnableKybds);
+#else
+ TSMRemoveDocumentProperty(TSMGetActiveDocument(), kTSMDocumentEnabledInputSourcesPropertyTag);
#endif
}
}