Hi,
I am wondering if the upper part of
TextEditor>>shiftEnclose: aKeyboardEvent
"Insert or remove bracket characters around the current selection."
| char left right startIndex stopIndex oldSelection which text |
char := aKeyboardEvent keyCharacter.
char = $9 ifTrue: [ char := $( ].
char = $, ifTrue: [ char := $< ].
char = $[ ifTrue: [ char := ${ ].
char = $' ifTrue: [ char := $" ].
is a bug or a feature. For german keyboards it causes that pressing the single
Apostroph (which is reached via shift-#) is substituted to ". So enclosing a
textblock and pressing ' leads to comments around the block, which is really
annoying.
I am curious, because this substitution does not make any sense to me. The
keyCharacter is always the "real" character ( $( instead of $9 ). Also it seems
that this substitution reduces the keyboard to the en-Layout, therefore breaks
the separation of concerns.
Is there any reason, why this substitution takes place?
Regards
Max