首页 > 试题广场 >

6-3 设计一个窗口,在该窗口中练习键盘的响应,要求如下:

[问答题]
6-3 设计一个窗口,在该窗口中练习键盘的响应,要求如下:
(1)按键盘上的向上箭头时,窗口中显示“You had hitted the up key”。
(2)按shift键时,窗口中显示“You had hitted the SHIFT key”。
(3)按Ctrl键时,窗口中显示“You had hitted the CTRL key”。
(4)按Ctrl +A键时,窗口中显示“You had hitted the CTRL A key”。
(5)按Shift +B键时,窗口中显示“You had hitted the SHIFT  Bkey”。

这道题你会答吗?花几分钟告诉大家答案吧!