On Mon, Jun 9, 2008 at 11:31 AM, Abdelrazak Younes <[EMAIL PROTECTED]> wrote:

> Bennett Helm wrote:
>
>> On Mon, Jun 9, 2008 at 10:53 AM, Abdelrazak Younes <[EMAIL PROTECTED]>
>> wrote:
>>
>>
>>
>>> Abdelrazak Younes wrote:
>>>
>>>
>>>
>>>> Bennett Helm wrote:
>>>>
>>>>  One more complaint: on opening Outline, the keyboard focus is on the
>>>>
>>>>
>>>>> Outline
>>>>> widget. That's fine (though my personal preference is that keyboard
>>>>> focus
>>>>> remain with the document text). However, on Mac there's no way using
>>>>> the
>>>>> keyboard to get back to the text: you have to click with the mouse. I
>>>>> gather
>>>>> <tab> is supposed to do this, at least on other systems, but on Mac
>>>>> <tab>
>>>>> only toggles within the Outline widget between the drop-down list (TOC,
>>>>> figures, tables, footnotes, etc.) and the list of items of that type.
>>>>> Is
>>>>> there a way to fix this or, short of that, of having keyboard focus
>>>>> remain
>>>>> on the text?
>>>>>
>>>>>
>>>>>
>>>>>
>>>> I will try to do the later.
>>>>
>>>>
>>>>
>>> Done, also for view-source.
>>>
>>>
>>
>>
>> It works for view-source, but not for outline.
>>
>>
>
> Well, it works on Windows and I am betting on X11 too ;-)
>
>  Previously after viewing outline, keyboard focus was in the outline widget
>> but with nothing selected; hitting <tab> once would then select the
>> drop-down list. Now, viewing outline keeps the keyboard focus in the
>> outline
>> widget, but with the drop-down list already selected.
>>
>>
>
> I guess the reason is that the Outline is a drawer and not a dock. OK, I am
> going to put in one last thing and then, if it still doesn't work well, what
> can I say? At this point, I think one of the other Mac developers should be
> involved... All I can do would be to unconditionally set the focus to the
> work area. This would mean that you would have no choice but to use the
> mouse in order to use the outline.


At least superficially that does it. (On Mac, there is no consistent way of
flipping between widgets with the keyboard, so having this be mouse only I
think is a reasonable compromise.)

Things are getting a bit weird, though. Once after returning from
full-screen view to the floating widget, I moved the widget slightly and it
docked unexpectedly. From then on, that window (the second window I opened)
views the outline as a docked widget -- even after restarting LyX (which
hadn't been the case previously). Moreover, I now get a crash everytime I
open the second window. Here's the backtrace:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x005213bb in lyx::frontend::TocWidget::setTreeDepth (this=0x10859770,
depth=0) at TocWidget.cpp:125
125 Qt::MatchFlags(Qt::MatchWildcard|Qt::MatchRecursive));
(gdb) bt
#0  0x005213bb in lyx::frontend::TocWidget::setTreeDepth (this=0x10859770,
depth=0) at TocWidget.cpp:125
#1  0x0052174c in lyx::frontend::TocWidget::updateView (this=0x10859770) at
TocWidget.cpp:212
#2  0x004c817e in lyx::frontend::GuiToc::updateView (this=0xbfffddf0) at
GuiToc.cpp:66
#3  0x004d4648 in lyx::frontend::GuiView::updateDialogs (this=0x14dc700) at
GuiView.cpp:2232
#4  0x001322b3 in lyx::LyXFunc::processKeySym (this=0x142d490,
[EMAIL PROTECTED], state=lyx::ShiftModifier) at LyXFunc.cpp:300
#5  0x004ef847 in lyx::frontend::GuiWorkArea::keyPressEvent
(this=0x10874990, ev=0xbfffe54c) at GuiWorkArea.cpp:871
#6  0x005eb78f in QWidget::event () at qstring.h:831
#7  0x008d9f55 in QFrame::event () at qstring.h:831
#8  0x00956c8f in QAbstractScrollArea::event () at qstring.h:831
#9  0x004ef1c5 in lyx::frontend::GuiWorkArea::event (this=0x10874990,
e=0x10874990) at GuiWorkArea.cpp:630
#10 0x005aca0f in QApplicationPrivate::notify_helper () at qstring.h:831
#11 0x005b368a in QApplication::notify () at qstring.h:831
#12 0x0036ab01 in lyx::frontend::GuiApplication::notify (this=0x142d9e0,
receiver=0x0, event=0x0) at GuiApplication.cpp:1131
#13 0x00b65064 in QCoreApplication::notifyInternal () at qatomic_i386.h:134
#14 0x005f836c in qt_sendSpontaneousEvent () at qstring.h:831
#15 0x00616f04 in qt_mac_send_modifiers_changed () at qstring.h:831
#16 0x00617dcf in QKeyMapperPrivate::translateKeyEvent () at qstring.h:831
#17 0x005fb15a in QApplicationPrivate::globalEventProcessor () at
qstring.h:831
#18 0x90de0763 in DispatchEventToHandlers ()
#19 0x90ddfb9d in SendEventToEventTargetInternal ()
#20 0x90ddfa02 in SendEventToEventTargetWithOptions ()
#21 0x90e0ee16 in ToolboxEventDispatcherHandler ()
#22 0x90de0b1c in DispatchEventToHandlers ()
#23 0x90ddfb9d in SendEventToEventTargetInternal ()
#24 0x90dfc4ee in SendEventToEventTarget ()
#25 0x005f6ce1 in qt_mac_send_event () at qstring.h:831
#26 0x00603182 in QEventDispatcherMac::processEvents () at qstring.h:831
#27 0x00b64771 in QEventLoop::processEvents () at qatomic_i386.h:134
#28 0x00b6489a in QEventLoop::exec () at qatomic_i386.h:134
#29 0x00b67591 in QCoreApplication::exec () at qatomic_i386.h:134
#30 0x00115909 in lyx::LyX::exec (this=0xbffff368, [EMAIL PROTECTED],
argv=0xbffff3b4) at LyX.cpp:438
#31 0x00002879 in main (argc=1, argv=0xbffff3b4) at main.cpp:46

Thanks for your persistence!

Bennett

Reply via email to