aguettinger Tux's lil' helper

Joined: 26 Sep 2003 Posts: 84
|
Posted: Sun Dec 06, 2009 1:09 pm Post subject: Shift-Space inserts nobreakspace |
|
|
I recently had some problems when coding C which turned out that special characters were inserted in my C code which the compiler didn't like.
When investigating I realized that the characters come from nobreakspaces. Apparently when using shift-space I insert nobreakspaces. After looking around a bit this should happen when I do CTRL-SHIFT-SPACE, but now it also does that with Shift-Space. Maybe something is wrong with my keyboard mappings, although everything else is working correctly. Any ideas of how to get rid of this behavior?
Here is a short text file shown in scite:
Code: | NEW IN TOWN
NEWÂ INÂ TOWN
          Â
NEWÂ INÂ TOWN
NEWÂ INÂ TOWN |
1. line: only space
2. line: holding shift while entering the whole line
3. line: repeatedly typing shift-space
4. line: same as 2.
5. line: using Ctrl-Shift-Space
The same file with cat test.txt in terminal:
Code: | NEW IN TOWN
NEW IN TOWN
NEW IN TOWN
NEW IN TOWN |
xev output when doing shift-space:
Code: | KeyPress event, serial 33, synthetic NO, window 0x2000001,
root 0x1a7, subw 0x0, time 32029260, (524,-60), root:(583,38),
state 0x0, keycode 62 (keysym 0xffe2, Shift_R), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 33, synthetic NO, window 0x2000001,
root 0x1a7, subw 0x0, time 32031172, (524,-60), root:(583,38),
state 0x1, keycode 65 (keysym 0xa0, nobreakspace), same_screen YES,
XLookupString gives 2 bytes: (c2 a0) " "
XmbLookupString gives 2 bytes: (c2 a0) " "
XFilterEvent returns: False
KeyRelease event, serial 33, synthetic NO, window 0x2000001,
root 0x1a7, subw 0x0, time 32031308, (524,-60), root:(583,38),
state 0x1, keycode 65 (keysym 0xa0, nobreakspace), same_screen YES,
XLookupString gives 2 bytes: (c2 a0) " "
XFilterEvent returns: False
KeyRelease event, serial 33, synthetic NO, window 0x2000001,
root 0x1a7, subw 0x0, time 32031636, (524,-60), root:(583,38),
state 0x1, keycode 62 (keysym 0xffe2, Shift_R), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
|
_________________ regards
- andy |
|