@@ -71,36 +71,18 @@ static public void init() {
7171 "You'll need to reinstall Processing." , e );
7272 }
7373
74- /* provisionally removed in 3.0a6, see changes in load()
75-
76- // check for platform-specific properties in the defaults
77- String platformExt = "." + PConstants.platformNames[PApplet.platform]; //$NON-NLS-1$
78- int platformExtLength = platformExt.length();
79-
80- // Get a list of keys that are specific to this platform
81- ArrayList<String> platformKeys = new ArrayList<String>();
82- for (String key : table.keySet()) {
83- if (key.endsWith(platformExt)) {
84- platformKeys.add(key);
85- }
86- }
87-
88- // Use those platform-specific keys to override
89- for (String key : platformKeys) {
90- // this is a key specific to a particular platform
91- String actualKey = key.substring(0, key.length() - platformExtLength);
92- String value = get(key);
93- set(actualKey, value);
94- }
95- */
96-
9774 // Clone the defaults, then override any them with the user's preferences.
9875 // This ensures that any new/added preference will be present.
9976 defaults = new HashMap <String , String >(table );
10077
10178 // other things that have to be set explicitly for the defaults
10279 setColor ("run.window.bgcolor" , SystemColor .control ); //$NON-NLS-1$
10380
81+ // For CJK users, enable IM support by default
82+ if (Language .useInputMethod ()) {
83+ setBoolean ("editor.input_method_support" , true );
84+ }
85+
10486 // next load user preferences file
10587 preferencesFile = Base .getSettingsFile (PREFS_FILE );
10688 boolean firstRun = !preferencesFile .exists ();
0 commit comments