bugXnee - Bugs: bug #24478, bad timing in --retype-file makes...

 
 

bug #24478: bad timing in --retype-file makes repeated key ignored in some apps

Submitted by:  None
Submitted on:  Tue 07 Oct 2008 01:40:06 PM UTC  
 
Category: cneeSeverity: 3 - Normal
Item Group: Error reportStatus: Fixed
Privacy: PublicAssigned to: Henrik Sandklef <hesa>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sun 12 Oct 2008 05:39:13 PM UTC, comment #1:

Fixed in CVS HEAD and in latest 'beta' release:
ftp://alpha.gnu.org/gnu/xnee/xnee-3.02.91.tar.gz

New options have been added to set the delays:

--retype-press-delay
--retype-release-delay

Henrik Sandklef <hesa>
Project AdministratorIn charge of this item.
Tue 07 Oct 2008 01:40:06 PM UTC, original submission:

it presses the key, wait, then release it and immediately press the next (in loop)

In some apps whe two same characters are immediately after each other it does not leave time to recognize it as two chars - it displays only one (hello -> helo)

Solution is simple - wait before AND after the keystroke (i made it also little faster for me - maybe you want to use 1000*50 to have it the same):

diff -ur ./libxnee/src/xnee_fake.c ../Xnee-3.01/libxnee/src/xnee_fake.c
--- ./libxnee/src/xnee_fake.c 2007-06-28 16:11:24.000000000 +0200
+++ ../Xnee-3.01/libxnee/src/xnee_fake.c 2008-10-07 14:28:10.000000000 +0200
@@ -539,8 +539,10 @@
tmp[i],xss.kc.kc));

xnee_fake_key_mod_event (xd, &xss, XNEE_PRESS, 0);
- usleep (1000*100);
+ usleep (1000*10);
xnee_fake_key_mod_event (xd, &xss, XNEE_RELEASE, 0);
+ usleep (1000*10);

}

(reported by -unavailable- - feel fre to ask me more )

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by hesa (Posted a comment)
  •  

    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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 12 Oct 2008 05:39:13 PM UTChesaStatusNone=>Fixed
      Assigned toNone=>hesa
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1