+2000-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/lyxfunc.C (processKeySym): only handle the
+ lockinginset/inset stuff if we have a buffer and text loaded...
+
+ * lib/Makefile.am (EXTRA_DIST): add encodings and languages
+
2000-10-12 <larsbj@baywatch.lyx.org>
* src/support/lyxfunctional.h: add operator= that takes a reference
templates tex ui
EXTRA_DIST = CREDITS chkconfig.ltx configure.cmd lyxrc.example \
- external_templates $(LYXLIBDIRS) build-listerrors
+ external_templates $(LYXLIBDIRS) build-listerrors \
+ encodings languages
libinstalldirs:
for dir in $(LYXLIBDIRS) ; do \
//return 0;
return FL_PREEMPT;
}
-
- // this function should be used always [asierra060396]
- UpdatableInset * tli = owner->view()->theLockingInset();
- if (owner->view()->available() && tli && (keysym == XK_Escape)) {
- if (tli == tli->GetLockingInset()) {
- owner->view()->unlockInset(tli);
- owner->view()->text->CursorRight(owner->view());
- moveCursorUpdate(false);
- owner->showState();
- } else {
- tli->UnlockInsetInInset(owner->view(),
- tli->GetLockingInset(),true);
+
+ if (owner->view()->available()) {
+ // this function should be used always [asierra060396]
+ UpdatableInset * tli = owner->view()->theLockingInset();
+ if (tli && (keysym == XK_Escape)) {
+ if (tli == tli->GetLockingInset()) {
+ owner->view()->unlockInset(tli);
+ owner->view()->text->CursorRight(owner->view());
+ moveCursorUpdate(false);
+ owner->showState();
+ } else {
+ tli->UnlockInsetInInset(owner->view(),
+ tli->GetLockingInset(),true);
+ }
+ //return 0;
+ return FL_PREEMPT;
}
- //return 0;
- return FL_PREEMPT;
}
-
+
// Can we be sure that this will work for all X-Windows
// implementations? (Lgb)
// This code snippet makes lyx ignore some keys. Perhaps