ssanthosh243 / semicomplete

Automatically exported from code.google.com/p/semicomplete
0 stars 0 forks source link

xdo_type didn't consider the Capslock #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. activate Caps Lock
2. xdotool type "ABC"
3. you got "abc"

What is the expected output? What do you see instead?
"ABC"

What version of the product are you using? On what operating system?
Any platform.

Please provide any additional information below.
in xdo.c, in xdo_type, Replace ln 565 & 569:
   if (shiftcode > 0)
into
   if ((shiftcode == 0) ^ IsCapsLockPressed())
and implement IsCapsLockPressed()...

Additional:
Would NumsLock has some similiar effects? for now I don't think so, however
not very sure.

Original issue reported on code.google.com by imguo...@gmail.com on 27 Apr 2009 at 9:33

GoogleCodeExporter commented 9 years ago
Confirmed. I'll work on a patch for capslock.

Original comment by jls.semi...@gmail.com on 11 May 2009 at 2:35

GoogleCodeExporter commented 9 years ago
FYI, it's not as simple as you propose.

Caps lock only affects letters (on my US keyboard), not numbers or symbols. 
Example,
a -> A if caps lock is on, but 3 does not become #.

Anyone with an international keyboard want to chime in about the behavior during
capslock? (keyboard only, not with xdotool)

Original comment by jls.semi...@gmail.com on 11 May 2009 at 2:43

GoogleCodeExporter commented 9 years ago
Actually, this might be related to
http://code.google.com/p/semicomplete/issues/detail?id=6

Original comment by jls.semi...@gmail.com on 2 Jul 2009 at 5:46

GoogleCodeExporter commented 9 years ago
No response about international keyboards, so I will only implement support for 
US 
letters a-z when capslock is enabled.

Let me know if you have other input.

Original comment by jls.semi...@gmail.com on 26 Feb 2010 at 7:58

GoogleCodeExporter commented 9 years ago
Oh nevermind, I was ignoring the obvious ability to turn off capslock while we 
are 
running xdotool.

I'm working on a fix now that patches --clearmodifiers to also disable capslock

Original comment by jls.semi...@gmail.com on 26 Feb 2010 at 8:54

GoogleCodeExporter commented 9 years ago
Fixed in svn r2663

Original comment by jls.semi...@gmail.com on 26 Feb 2010 at 9:25