* KDE Screensaver and Enter key
@ 2004-05-13 18:02 Ralph Alvy
2004-05-13 20:46 ` Ralph Alvy
0 siblings, 1 reply; 6+ messages in thread
From: Ralph Alvy @ 2004-05-13 18:02 UTC (permalink / raw)
To: linux-msdos
I notice that under dosemu 1.2.1, when the KDE 3.2.2 Screensaver is active,
after I type my password and hit Enter, the Enter key is picked up by
dosemu. Is there a way around this?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: KDE Screensaver and Enter key
2004-05-13 18:02 KDE Screensaver and Enter key Ralph Alvy
@ 2004-05-13 20:46 ` Ralph Alvy
2004-05-13 22:09 ` Bart Oldeman
0 siblings, 1 reply; 6+ messages in thread
From: Ralph Alvy @ 2004-05-13 20:46 UTC (permalink / raw)
To: linux-msdos
Ralph Alvy wrote:
> I notice that under dosemu 1.2.1, when the KDE 3.2.2 Screensaver is
> active, after I type my password and hit Enter, the Enter key is picked up
> by dosemu. Is there a way around this?
>
And this happens also when running dosemu 1.2.1 under Xfce4 with
xscreensaver as my screensaver manager.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: KDE Screensaver and Enter key
2004-05-13 22:09 ` Bart Oldeman
@ 2004-05-13 22:01 ` Ralph Alvy
2004-05-13 22:03 ` Ralph Alvy
2004-07-26 10:02 ` Marcel van der Heide
1 sibling, 1 reply; 6+ messages in thread
From: Ralph Alvy @ 2004-05-13 22:01 UTC (permalink / raw)
To: linux-msdos
Bart Oldeman wrote:
> On Thu, 13 May 2004, Ralph Alvy wrote:
>
>> Ralph Alvy wrote:
>>
>> > I notice that under dosemu 1.2.1, when the KDE 3.2.2 Screensaver is
>> > active, after I type my password and hit Enter, the Enter key is picked
>> > up by dosemu. Is there a way around this?
>> >
>> And this happens also when running dosemu 1.2.1 under Xfce4 with
>> xscreensaver as my screensaver manager.
>
> I've seen it myself while flipping windows with alt-tab, sometimes the
> FreeDOS command.com would pick up the tab and try to do filename
> completion at the prompt [beep!]
>
> What actually happens is that as soon as the xdosemu window becomes active
> it reads the current X keymap, which of the keys are pressed and so on. So
> it finds out that (say) the Enter key is still pressed. It then simulates
> a "press Enter" to DOS so that the release will be processed correctly.
>
> This problem is really quite difficult to solve, I don't know how.
> A timeout would be something but then some keys may be missed...
> I tried a couple things around it but it always brought up a new (and
> worse) problem.
>
> An example is having the shift key pressed while your mouse moves to
> the window, then you expect capitals, so a "press shift key" must be
> simulated. Now do the same with ctrl while getting into DOOM... and it is
> used a shooting key. So in general it is difficult to distinguish special
> keys from non-special keys because we don't know what the program wants.
> Anyway I hope you get the idea.
>
> Bart
I understand. Perhaps a workaround might be to have dosemu lose its focus
after a certain amount of time. This way, since the dosemu window won't be
in focus after the screen saver is dismissed, it won't inherit the final
keypress that dismissed the screen saver.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: KDE Screensaver and Enter key
2004-05-13 22:01 ` Ralph Alvy
@ 2004-05-13 22:03 ` Ralph Alvy
0 siblings, 0 replies; 6+ messages in thread
From: Ralph Alvy @ 2004-05-13 22:03 UTC (permalink / raw)
To: linux-msdos
Ralph Alvy wrote:
> Bart Oldeman wrote:
>
>> On Thu, 13 May 2004, Ralph Alvy wrote:
>>
>>> Ralph Alvy wrote:
>>>
>>> > I notice that under dosemu 1.2.1, when the KDE 3.2.2 Screensaver is
>>> > active, after I type my password and hit Enter, the Enter key is
>>> > picked up by dosemu. Is there a way around this?
>>> >
>>> And this happens also when running dosemu 1.2.1 under Xfce4 with
>>> xscreensaver as my screensaver manager.
>>
>> I've seen it myself while flipping windows with alt-tab, sometimes the
>> FreeDOS command.com would pick up the tab and try to do filename
>> completion at the prompt [beep!]
>>
>> What actually happens is that as soon as the xdosemu window becomes
>> active it reads the current X keymap, which of the keys are pressed and
>> so on. So it finds out that (say) the Enter key is still pressed. It then
>> simulates a "press Enter" to DOS so that the release will be processed
>> correctly.
>>
>> This problem is really quite difficult to solve, I don't know how.
>> A timeout would be something but then some keys may be missed...
>> I tried a couple things around it but it always brought up a new (and
>> worse) problem.
>>
>> An example is having the shift key pressed while your mouse moves to
>> the window, then you expect capitals, so a "press shift key" must be
>> simulated. Now do the same with ctrl while getting into DOOM... and it is
>> used a shooting key. So in general it is difficult to distinguish special
>> keys from non-special keys because we don't know what the program wants.
>> Anyway I hope you get the idea.
>>
>> Bart
>
> I understand. Perhaps a workaround might be to have dosemu lose its focus
> after a certain amount of time. This way, since the dosemu window won't be
> in focus after the screen saver is dismissed, it won't inherit the final
> keypress that dismissed the screen saver.
Correction: "after a certain amount of *idle* time"
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: KDE Screensaver and Enter key
2004-05-13 20:46 ` Ralph Alvy
@ 2004-05-13 22:09 ` Bart Oldeman
2004-05-13 22:01 ` Ralph Alvy
2004-07-26 10:02 ` Marcel van der Heide
0 siblings, 2 replies; 6+ messages in thread
From: Bart Oldeman @ 2004-05-13 22:09 UTC (permalink / raw)
To: Ralph Alvy; +Cc: linux-msdos
On Thu, 13 May 2004, Ralph Alvy wrote:
> Ralph Alvy wrote:
>
> > I notice that under dosemu 1.2.1, when the KDE 3.2.2 Screensaver is
> > active, after I type my password and hit Enter, the Enter key is picked up
> > by dosemu. Is there a way around this?
> >
> And this happens also when running dosemu 1.2.1 under Xfce4 with
> xscreensaver as my screensaver manager.
I've seen it myself while flipping windows with alt-tab, sometimes the
FreeDOS command.com would pick up the tab and try to do filename
completion at the prompt [beep!]
What actually happens is that as soon as the xdosemu window becomes active
it reads the current X keymap, which of the keys are pressed and so on. So
it finds out that (say) the Enter key is still pressed. It then simulates
a "press Enter" to DOS so that the release will be processed correctly.
This problem is really quite difficult to solve, I don't know how.
A timeout would be something but then some keys may be missed...
I tried a couple things around it but it always brought up a new (and
worse) problem.
An example is having the shift key pressed while your mouse moves to
the window, then you expect capitals, so a "press shift key" must be
simulated. Now do the same with ctrl while getting into DOOM... and it is
used a shooting key. So in general it is difficult to distinguish special
keys from non-special keys because we don't know what the program wants.
Anyway I hope you get the idea.
Bart
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: KDE Screensaver and Enter key
2004-05-13 22:09 ` Bart Oldeman
2004-05-13 22:01 ` Ralph Alvy
@ 2004-07-26 10:02 ` Marcel van der Heide
1 sibling, 0 replies; 6+ messages in thread
From: Marcel van der Heide @ 2004-07-26 10:02 UTC (permalink / raw)
To: linux-msdos
On Thursday 13 May 2004 22:09, Bart Oldeman wrote:
> On Thu, 13 May 2004, Ralph Alvy wrote:
> > Ralph Alvy wrote:
> > > I notice that under dosemu 1.2.1, when the KDE 3.2.2
> > > Screensaver is active, after I type my password and hit Enter,
> > > the Enter key is picked up by dosemu. Is there a way around
> > > this?
>
> I've seen it myself while flipping windows with alt-tab, sometimes
> the FreeDOS command.com would pick up the tab and try to do
> filename completion at the prompt [beep!]
>
> What actually happens is that as soon as the xdosemu window becomes
> active it reads the current X keymap, which of the keys are pressed
> and so on. So it finds out that (say) the Enter key is still
> pressed. It then simulates a "press Enter" to DOS so that the
> release will be processed correctly.
Sorry to chime in so late. I've got the same problem, especially when
switching desktops in KDE (Ctrl-1, -2 etc.) and thought of a possible
solution.
If after the xdosemu window becomes active, dosemu waits for a key to
_go_ down before interpreting the currently pressed keys instead of
using them immediately, I think the result would be more intuitive.
> An example is having the shift key pressed while your mouse moves
> to the window, then you expect capitals, so a "press shift key"
> must be simulated. Now do the same with ctrl while getting into
> DOOM... and it is used a shooting key. So in general it is
> difficult to distinguish special keys from non-special keys because
> we don't know what the program wants. Anyway I hope you get the
> idea.
In the shift key example, the shift key would be taken into account as
soon as another key is pressed, for example a letter would become a
capital.
In the doom example, doom would only start firing when a new key is
pressed or the ctrl released and pressed again.
Could this be a workable solution?
Best wishes,
Marcel
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-07-26 10:02 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-13 18:02 KDE Screensaver and Enter key Ralph Alvy
2004-05-13 20:46 ` Ralph Alvy
2004-05-13 22:09 ` Bart Oldeman
2004-05-13 22:01 ` Ralph Alvy
2004-05-13 22:03 ` Ralph Alvy
2004-07-26 10:02 ` Marcel van der Heide
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox