jnodekeyevent.java
来自「纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统」· Java 代码 · 共 58 行
JAVA
58 行
package org.jnode.wt.events;
/**
* @author vali
*
* To change the template for this generated type comment go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
public class JNodeKeyEvent extends JNodeInputEvent {
/** This is the first id in the range of event ids used by this class. */
public static final int KEY_FIRST = 400;
/** This is the last id in the range of event ids used by this class. */
public static final int KEY_LAST = 402;
/**
* This event id indicates a key was typed, which is a key press followed
* by a key release to generate an actual Unicode character. It may take
* several key presses to generate one key typed event, and some action
* keys have no corresponding key typed.
*/
public static final int KEY_TYPED = 400;
/** This event id indicates a key was pressed. */
public static final int KEY_PRESSED = 401;
/** This event it indicates a key was released. */
public static final int KEY_RELEASED = 402;
private int keycode = -1;
/**
* @param source
* @param id
*/
public JNodeKeyEvent(Object source, int id, int keyc) {
super(source, id);
this.keycode = keyc;
}
public char getKeyChar() {
return (char) keycode;
}
public int getKeyCode() {
return keycode;
}
public static String getKeyText(int keyCode) {
return null;
}
public boolean isActionKey() {
return false;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?