IDEMPIERE-320 - Make Swing CTextArea consistent with ZK
(transplanted from 1c201bf217991c1d82d05f8eaa4bc2711d69c355)
This commit is contained in:
parent
301ce178bb
commit
d1e3eb4a89
|
@ -3,3 +3,8 @@
|
|||
INSERT INTO AD_SysConfig (AD_SysConfig_ID,EntityType,ConfigurationLevel,Value,Description,AD_SysConfig_UU,Created,Updated,AD_Client_ID,AD_Org_ID,CreatedBy,IsActive,UpdatedBy,Name) VALUES (200012,'D','C','N','Override Text Area behaviour, ENTER to change value, TAB to focus next, Shift-ENTER for new line','b8634904-e4d1-48da-8b86-cc46d12cb52d',TO_DATE('2012-07-16 05:38:58','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2012-07-16 05:38:58','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Y',100,'SWING_OVERRIDE_TEXT_AREA_BEHAVIOUR')
|
||||
;
|
||||
|
||||
UPDATE AD_System
|
||||
SET LastMigrationScriptApplied='851_IDEMPIERE-320.sql'
|
||||
WHERE LastMigrationScriptApplied<'851_IDEMPIERE-320.sql'
|
||||
OR LastMigrationScriptApplied IS NULL
|
||||
;
|
|
@ -3,4 +3,9 @@
|
|||
INSERT INTO AD_SysConfig (AD_SysConfig_ID,EntityType,ConfigurationLevel,Value,Description,AD_SysConfig_UU,Created,Updated,AD_Client_ID,AD_Org_ID,CreatedBy,IsActive,UpdatedBy,Name) VALUES (200012,'D','C','N','Override Text Area behaviour, ENTER to change value, TAB to focus next, Shift-ENTER for new line','b8634904-e4d1-48da-8b86-cc46d12cb52d',TO_TIMESTAMP('2012-07-16 05:38:58','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2012-07-16 05:38:58','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Y',100,'SWING_OVERRIDE_TEXT_AREA_BEHAVIOUR')
|
||||
;
|
||||
|
||||
UPDATE AD_System
|
||||
SET LastMigrationScriptApplied='851_IDEMPIERE-320.sql'
|
||||
WHERE LastMigrationScriptApplied<'851_IDEMPIERE-320.sql'
|
||||
OR LastMigrationScriptApplied IS NULL
|
||||
;
|
||||
|
|
@ -160,8 +160,8 @@ public class CTextArea extends JScrollPane
|
|||
m_textArea.firePropertyChange("editable", !isEditable(), isEditable());
|
||||
|
||||
// IDEMPIERE-320
|
||||
String taBehaviour = MSysConfig.getValue("SWING_OVERRIDE_TEXT_AREA_BEHAVIOUR", Env.getAD_Client_ID(Env.getCtx()));
|
||||
if (taBehaviour != null && taBehaviour.equals("Y"))
|
||||
boolean taBehaviour = MSysConfig.getBooleanValue("SWING_OVERRIDE_TEXT_AREA_BEHAVIOUR", false, Env.getAD_Client_ID(Env.getCtx()));
|
||||
if (taBehaviour)
|
||||
{
|
||||
InputMap im = m_textArea.getInputMap();
|
||||
im.put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, InputEvent.SHIFT_DOWN_MASK), INSERT_BREAK);
|
||||
|
|
Loading…
Reference in New Issue