It receives keyboard events using one of several methods and uses X events to drive the expansions.
它通过多种方法的其中一种来接收键盘事件并使用X事件进行扩展。