From 7a370096082773fe5d760ca0aa1360ca81e84adb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Sun, 2 Dec 2001 16:23:50 +0000 Subject: [PATCH] tab-sel patch git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3131 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/ChangeLog | 5 +++++ src/insets/insettabular.C | 18 +++++++++++++++--- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 845334873f..3fcf5d7107 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,8 @@ +2001-12-01 John Levon + + * insettabular.C: capture some more functions to prevent + selection drawing problems. Bug #451274 + 2001-12-01 John Levon * insetgraphics.C: diff --git a/src/insets/insettabular.C b/src/insets/insettabular.C index 703c29742d..02ba393353 100644 --- a/src/insets/insettabular.C +++ b/src/insets/insettabular.C @@ -995,13 +995,25 @@ InsetTabular::localDispatch(BufferView * bv, kb_action action, updateLocal(bv, CURSOR, false); break; } + // none of these make sense for insettabular, + // but we must catch them to prevent any + // selection from being confused + case LFUN_PRIORSEL: + case LFUN_NEXTSEL: + case LFUN_WORDLEFT: + case LFUN_WORDLEFTSEL: + case LFUN_WORDRIGHT: + case LFUN_WORDRIGHTSEL: + case LFUN_DOWN_PARAGRAPH: + case LFUN_DOWN_PARAGRAPHSEL: + case LFUN_UP_PARAGRAPH: + case LFUN_UP_PARAGRAPHSEL: case LFUN_BACKSPACE: - break; case LFUN_DELETE: - break; case LFUN_HOME: - break; + case LFUN_HOMESEL: case LFUN_END: + case LFUN_ENDSEL: break; case LFUN_LAYOUT_TABULAR: {