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
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 <tinchodias@gmail.com> 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/
participants (2)
-
Martin Dias -
stepharong