例
例 | |
{let kpd:KeyPressDescriptor = {KeyPressMatchers "A", "Ctrl+A", "Alt+A"} } {Fill width=3cm, height=2cm, background="blue", {on e:PointerPress at f:Fill do {f.request-key-focus} {e.consume} }, {on FocusIn at f:Fill do set f.background = "green" }, {on FocusOut at f:Fill do set f.background = "red" }, {on e:KeyPress do {if {kpd.matches? e} then {popup-message "Matched key event"} } } } |
このオブジェクトによって要求されるキーと修飾子を表す文字列を返します。 |
この |
このオブジェクトによって要求されるキーと修飾子を表す文字列を返します。
説明
この
説明