The latest changes also seem to affect OCompletion in a way. Pressing ) or ] produces a DNU. Disabling "Smart Characters" clearly helps.<br><br>Alex<br><br><div class="gmail_quote">2011/8/9 Chris Muller <span dir="ltr"><<a href="mailto:asqueaker@gmail.com">asqueaker@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">In Linux, it used to be, I could type Control in lieu of Shift+Alt.<br>
For example, I used to type Control+( to surround with parentheses.<br>
Control+[ to surround with curly-braces {}.<br>
<br>
Now I have to type Alt+Shift+( and Alt+Shift+[ for those.<br>
<br>
Is there any way to get the Control+( back?<br>
<br>
- Chris<br>
<br>
On Thu, Aug 4, 2011 at 3:15 AM, Nicolas Cellier<br>
<<a href="mailto:nicolas.cellier.aka.nice@gmail.com">nicolas.cellier.aka.nice@gmail.com</a>> wrote:<br>
> I'm typing this message on a mac French keyboard.<br>
> That means I can obtain the holy brackets [ | ] only through weird<br>
> keystroke combinations<br>
> | = shit+option+L<br>
> [ = shift+option+( where shift+5 is (<br>
><br>
> Enclosing a text in square brackets would require some finger torture<br>
> both in Squeak/Pharo<br>
> shift+option+command+(<br>
> But this does not work because of #shiftEnclose: rules encountered in<br>
> #initializeShiftCmdKeyShortcuts<br>
> (found both ParagraphEditor class and TextEditor class)<br>
><br>
> "Note: Command key overrides shift key, so, for example, cmd-shift-9<br>
> produces $9 not $("<br>
> '9[,''' do: [ :char | cmdMap at: (char asciiValue + 1) put:<br>
> #shiftEnclose: ]. "({< and double-quote"<br>
> "Note: Must use cmd-9 or ctrl-9 to get '()' since cmd-shift-9 is a<br>
> Mac FKey command."<br>
><br>
> shiftEnclose: is badly designed because it does hardcode the keyboard<br>
> layout (see below).<br>
> This is not compatible with modern VMs, at least the mac ones, because<br>
> they deliver a unicode codePoint for $[ or $|, not a raw keycode.<br>
> It's easy to remove this anachronism and correct the mapping:<br>
><br>
> "On some keyboards, these characters require a shift"<br>
> '([<{|"''' do: [:char | cmdMap at: char asciiValue + 1 put: #enclose:].<br>
><br>
> To avoid pushing a mac-centric change in trunk, I need to know if the<br>
> Linux/Windows VM would support above modification.<br>
> Can anyone check for me ?<br>
><br>
> Nicolas<br>
><br>
><br>
><br>
><br>
><br>
> Example of hardcoded keyboard layout:<br>
> TextEditor>>shiftEnclose: aKeyboardEvent<br>
> "Insert or remove bracket characters around the current selection.<br>
> Flushes typeahead."<br>
><br>
> | char left right startIndex stopIndex oldSelection which text |<br>
> char := aKeyboardEvent keyCharacter.<br>
> char = $9 ifTrue: [ char := $( ].<br>
> char = $, ifTrue: [ char := $< ].<br>
> char = $[ ifTrue: [ char := ${ ].<br>
> char = $' ifTrue: [ char := $" ].<br>
> char asciiValue = 27 ifTrue: [ char := ${ ]. "ctrl-["<br>
> snip...<br>
><br>
><br>
<br>
</blockquote></div><br>