Spec menu shortcut

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Spec menu shortcut

tinchodias
Is it known that Spec models ignore menu shortcuts? at least some of them, TreeModel and FastTableModel. Example:


| example |
example := FastTableModel new.
example
items: (1 to: 10);
menu: [
| aMenu |
aMenu := MenuModel new.
aMenu addGroup: [ :aGroup |
aGroup addItem: [ :anItem | 
anItem
name: 'Halt';
shortcut: $h command;
action: [ 1halt ] ] ].
aMenu buildWithSpecAsPopup ];
openWithSpec.


This is latest Pharo 6.

Cheers,
Martín
Reply | Threaded
Open this post in threaded view
|

Re: Spec menu shortcut

stepharong
Hi martin


I do not know. The menu part is not really good. 

Stef

On Fri, 10 Mar 2017 00:03:27 +0100, Martin Dias <[hidden email]> wrote:

Is it known that Spec models ignore menu shortcuts? at least some of them, TreeModel and FastTableModel. Example:


| example |
example := FastTableModel new.
example
items: (1 to: 10);
menu: [
| aMenu |
aMenu := MenuModel new.
aMenu addGroup: [ :aGroup |
aGroup addItem: [ :anItem | 
anItem
name: 'Halt';
shortcut: $h command;
action: [ 1halt ] ] ].
aMenu buildWithSpecAsPopup ];
openWithSpec.


This is latest Pharo 6.

Cheers,
Martín



--
Using Opera's mail client: http://www.opera.com/mail/