按鍵處理

檢視有自己的預設繫結,這些繫結可以更改。

您可以訂閱所有按鍵事件。

eventLoop.keyEvents().subscribe((KeyEvent event) -> {
	// do something with key event
});

KeyEvent是一個記錄,其中包含從終端傳來的繫結資訊。

一些檢視允許您註冊熱鍵,這些熱鍵在正常按鍵處理之前進行處理。有關更多資訊,請參閱註冊繫結

© . This site is unofficial and not affiliated with VMware.