diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-06-30 14:55:02 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-06-30 14:55:02 +0000 |
commit | 2529c52e7da22bc50c5c98db9d2c597b0fcb18ff (patch) | |
tree | 07bf33452b604a365ef559d58b91059cf0c60ce5 /sw/source/ui/cctrl/actctrl.cxx | |
parent | 952a8fbe94b795c6dd80ff07813f3f9856e88240 (diff) |
INTEGRATION: CWS aig04 (1.3.48); FILE MERGED
2003/06/26 07:29:31 os 1.3.48.1: #108791# List item edit field inserts on RETURN key
Diffstat (limited to 'sw/source/ui/cctrl/actctrl.cxx')
-rw-r--r-- | sw/source/ui/cctrl/actctrl.cxx | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/sw/source/ui/cctrl/actctrl.cxx b/sw/source/ui/cctrl/actctrl.cxx index 319b3317d0f3..9eb0f1b7af4e 100644 --- a/sw/source/ui/cctrl/actctrl.cxx +++ b/sw/source/ui/cctrl/actctrl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: actctrl.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: vg $ $Date: 2003-04-17 15:14:14 $ + * last change: $Author: hr $ $Date: 2003-06-30 15:55:01 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -137,6 +137,27 @@ void NoSpaceEdit::Modify() if(GetModifyHdl().IsSet()) GetModifyHdl().Call(this); } +/* -----------------25.06.2003 15:57----------------- + --------------------------------------------------*/ +ReturnActionEdit::~ReturnActionEdit() +{ +} +/* -----------------25.06.2003 15:58----------------- + + --------------------------------------------------*/ +void ReturnActionEdit::KeyInput( const KeyEvent& rEvt) +{ + const KeyCode aKeyCode = rEvt.GetKeyCode(); + const USHORT nModifier = aKeyCode.GetModifier(); + if( aKeyCode.GetCode() == KEY_RETURN && + !nModifier) + { + if(aReturnActionLink.IsSet()) + aReturnActionLink.Call(this); + } + else + Edit::KeyInput(rEvt); +} |