From 7f1066c3392ab7498c52ab18fa3b2bf0abbaf71d Mon Sep 17 00:00:00 2001 From: Martin Vermeer Date: Sun, 10 Apr 2005 09:07:28 +0000 Subject: [PATCH] Make HOME/END keys work to leave math sub-insets git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9798 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/ChangeLog | 6 ++++++ src/mathed/math_gridinset.C | 2 ++ src/mathed/math_nestinset.C | 2 ++ 3 files changed, 10 insertions(+) diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index cd15306aa2..17cb0843af 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -1,3 +1,9 @@ +2005-04-09 Martin Vermeer + + * math_gridinset.C (doDispatch): + * math_nestinset.C (doDispatch): enable HOME/END keys to skip + out of inset (adding cur.undispatched()) + 2005-04-09 Martin Vermeer * math_colorinset.C (draw): fix crash and cursor positioning. diff --git a/src/mathed/math_gridinset.C b/src/mathed/math_gridinset.C index 566b9e6473..955477ae7d 100644 --- a/src/mathed/math_gridinset.C +++ b/src/mathed/math_gridinset.C @@ -1210,6 +1210,7 @@ void MathGridInset::doDispatch(LCursor & cur, FuncRequest & cmd) cur.pos() = 0; } else { cmd = FuncRequest(LFUN_FINISHED_LEFT); + cur.undispatched(); } break; @@ -1230,6 +1231,7 @@ void MathGridInset::doDispatch(LCursor & cur, FuncRequest & cmd) cur.pos() = cur.lastpos(); } else { cmd = FuncRequest(LFUN_FINISHED_RIGHT); + cur.undispatched(); } break; diff --git a/src/mathed/math_nestinset.C b/src/mathed/math_nestinset.C index 79ca87f779..687497f66e 100644 --- a/src/mathed/math_nestinset.C +++ b/src/mathed/math_nestinset.C @@ -555,6 +555,7 @@ void MathNestInset::doDispatch(LCursor & cur, FuncRequest & cmd) cur.pos() = 0; } else { cmd = FuncRequest(LFUN_FINISHED_LEFT); + cur.undispatched(); } break; @@ -575,6 +576,7 @@ void MathNestInset::doDispatch(LCursor & cur, FuncRequest & cmd) cur.pos() = cur.lastpos(); } else { cmd = FuncRequest(LFUN_FINISHED_RIGHT); + cur.undispatched(); } break;