Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Shift-Space inserts nobreakspace
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
aguettinger
Tux's lil' helper
Tux's lil' helper


Joined: 26 Sep 2003
Posts: 84

PostPosted: Sun Dec 06, 2009 1:09 pm    Post subject: Shift-Space inserts nobreakspace Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum