Hi Sam,
First this is equivalent to:
Code: Select all
Menu fileMenu { parent = menu, text = "File", hotKey = f };
Then 'menu' here if this is inside a Window class would refer to the Window::menu property of that class, which is automatically initialized when you set hasMenuBar = true.
'f' in this case is an enumeration value from KeyCode which can be converted to the data type of the Window::hotKey property (Key).
Hope this helps
-Jerome