2014-08-27 15:12 GMT+02:00 Maximilian Bareis <max.bareis@me.com>:
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
I hope this gets resolved, as it is really annoying with a german Keyboard. And look at the issues: 11436 <https://pharo.fogbugz.com/default.asp?11436> and 4646 <https://pharo.fogbugz.com/default.asp?4646> Nicolai