[Pharo-project] TWM doesn't work without keymappins and keymappings doesn't work

Gastón Dall' Oglio gaston.dalloglio at gmail.com
Thu Oct 20 07:57:41 EDT 2011


Hello.

Maybe this data are help for choose the best combination of keymappings.

http://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts



2011/10/20 laurent laffont <laurent.laffont at gmail.com>

>
>>>> cmd + r should not conflict with cmd + shift + r , this should be
>>> handled by keymapping... Guillermo ?
>>>
>>
>> Well it should not...  But the event polled from the image, in mac are the
>> following:
>>
>> If you press *Cmd + a* you get *Cmd + a*
>> If you press *Cmd + Shift + a* you get *Cmd + A
>> *If you press *Ctrl + a* you get *Ctrl + a
>> *If you press *Ctrl + Shift + a* you get *Ctrl + Shift + a*
>>
>> So, I'm not getting right now the shift from the keyEvent :/.
>>
>> And the main problem is that this behavior is different for each platform
>> and sometimes It cannot be hacked to get it working...  The right thing to
>> do I think is to fix the event handling at VM side... :/
>>
>>
>
>
> Oh, Mariano is an expert now ;)
>
> Laurent
>
>
>
>
>>
>>>
>>>> Now I was thinking, what about providing a setting that let you change
>>>> just the first part of the shortcuts of TWM (r in this case), otherwise I
>>>> would need to change all settings ;)
>>>>
>>>
>>>
>>> at least we can add a #prefix accessor in TWMKeymapping to change the
>>> default at once, and adapt TWMKeymapping>>#shortcuts consequently.
>>>
>>>
>>>
>>>> Now I am not sure if we should change this in TWM or try to replace cmd
>>>> + shift + r with a simple TAB and cmd + shift + l with cmd + shift + tab.
>>>> The problem wuth TAB so far is that it is used by OCompletion :(
>>>>
>>>
>>>
>>> We can also change for Ctrl + r as prefix to be more Emacs-like but IIRC
>>> Ctrl shortcut is not well handled on OSX.
>>>
>>> Laurent
>>>
>>>
>>>
>>>>
>>>> Any ideas?
>>>>
>>>> Thanks!
>>>>
>>>>
>>>>
>>>>> - You can load TWM without KeyMapping
>>>>> using: ConfigurationOfTilingWindowManager  loadDevelopmentWithoutKeyMapping.
>>>>>
>>>>> As a side note, this is the configuration I use in my Pharo images:
>>>>>
>>>>> Gofer it
>>>>> squeaksource: 'TilingWindowManager';
>>>>> package: 'ConfigurationOfTilingWindowManager';
>>>>>  load.
>>>>> (Smalltalk at:#ConfigurationOfTilingWindowManager) loadDevelopment.
>>>>> (Smalltalk at:#TWMUITheme) beCurrent.
>>>>> TaskbarMorph  showTaskbar: false.
>>>>> TasklistMorph keepOpen: true.
>>>>> (Smalltalk at:#TWMBar) perform: #showTWMBar: with: true.
>>>>>
>>>>>
>>>>> Cheers,
>>>>>
>>>>> Laurent Laffont
>>>>>
>>>>>
>>>>>>
>>>>>> Thanks guys
>>>>>>
>>>>>>
>>>>>> On Sun, Oct 16, 2011 at 10:11 AM, laurent laffont <
>>>>>> laurent.laffont at gmail.com> wrote:
>>>>>>
>>>>>>>
>>>>>>>>>
>>>>>>>> OK so cmd+w is definitely not a good prefix for TWM shortcuts. Is
>>>>>>>> cmd+m  better ?
>>>>>>>>
>>>>>>>>
>>>>>>> oups Cmd+m not a good idea :) I struggle to find a good prefix.....
>>>>>>>
>>>>>>> Laurent.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> So i installed TWM without keybinding but now I cannot open the
>>>>>>>>>> settings window because keymappings is not load.
>>>>>>>>>>
>>>>>>>>>> Any solution? (install TWM without keymappings or fixing
>>>>>>>>>> keymappings)
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I've done some fixes and improvements to keymapping, and I've
>>>>>>>>> created a 2.0 version where:
>>>>>>>>>
>>>>>>>>> - the collisions below are fixed
>>>>>>>>> - keymaps can be configured per morph instance too (not only per
>>>>>>>>> class, as the former version)
>>>>>>>>> - some little improvements and code cleaning
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Thanks !
>>>>>>>>
>>>>>>>>
>>>>>>>> But those things I remarked of TWM should be reviewed :)
>>>>>>>>>
>>>>>>>>> Or you can Use twm without keymappings and I'll have no more
>>>>>>>>> feedback :(
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> TWM without Keymapping is not really interesting. I will produce new
>>>>>>>> versions of TWM.
>>>>>>>>
>>>>>>>> Laurent
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> thanks!
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Thank you :)
>>>>>>>>>
>>>>>>>>> Guille
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Mariano
>>>>>> http://marianopeck.wordpress.com
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Mariano
>>>> http://marianopeck.wordpress.com
>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20111020/509af3a5/attachment-0001.html>


More information about the Pharo-dev mailing list