bugGNU Typist - Bugs: bug #38839, Pressing Alt + another key during...

 
 

bug #38839: Pressing Alt + another key during a drill resets the drill

Submitted by:  Tim Marston <edam>
Submitted on:  Sat 27 Apr 2013 06:48:30 PM UTC  
 
Severity: 3 - NormalPriority: 5 - Normal
Status: FixedPrivacy: Public
Assigned to: Felix Natter <fnatter>Open/Closed: Open
Operating System: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 18 Aug 2013 03:10:53 PM UTC, comment #4:

The problem that used to be left was the halfdelay() in getch_fl()
(gtypist.c) led to an increased delay, but this was fixed with these two lines:

+ /* undo the halfdelay() from getch_fl() */
+ cbreak();

=> so the patch worked OK for me. The original poster did not confirm this unfortunately.

Felix Natter <fnatter>
Project MemberIn charge of this item.
Sun 18 Aug 2013 01:36:51 PM UTC, comment #3:

Is this fixed?

I found this:

http://git.savannah.gnu.org/cgit/gtypist.git/commit/?id=ce02f4169eb4b378f0391855498a29dc1948da04

Or was there still a problem with it?

Tim Marston <edam>
Project Administrator
Sat 25 May 2013 12:50:38 PM UTC, comment #2:

hello,

now I have a patch that does not have the 1s delay
when pressing ESC that the previous patch caused.

Best Regards,
Felix

(file #28170)

Felix Natter <fnatter>
Project MemberIn charge of this item.
Sat 11 May 2013 04:28:29 PM UTC, comment #1:

hi,

using the idea from here:
http://stackoverflow.com/questions/5977395/ncurses-and-esc-alt-keys
I attached a patch which works for me.

Could you please verify it?

Thanks and Best Regards,
Felix

(file #28066)

Felix Natter <fnatter>
Project MemberIn charge of this item.
Sat 27 Apr 2013 06:48:30 PM UTC, original submission:

During a drill, accidentally pressing Alt and another key has the same effect as pressing Escape and then an incorrect key. That is to say, it clears all keys pressed thus far (resetting the drill) and then makes an incorrect key press.

This key sequence should be handled better, and registered as a single key error (and not reset the drill!).

Tim Marston <edam>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by fnatter (Updated the item)
  • -unavailable- added by fnatter
  • -unavailable- added by edam (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 18 Aug 2013 03:12:31 PM UTCfnatterStatusConfirmed=>Fixed
    Sun 18 Aug 2013 01:36:51 PM UTCedamAssigned toNone=>fnatter
    Sat 25 May 2013 12:50:38 PM UTCfnatterAttached File-=>Added fix-for-alt-key-aborts-lesson2.diff, #28170
    Sat 11 May 2013 04:28:29 PM UTCfnatterAttached File-=>Added fix-for-alt-key-aborts-lesson.diff, #28066
      Carbon-Copy-=>Added felix natter

    Back to the top


    Powered by Savane 3.1-cleanup