defkeyfilter.java

来自「基于LWVCL开发的库」· Java 代码 · 共 37 行

JAVA
37
字号
/** * class TextComponent -  * * Copyright (c) 1998 *      Transvirtual Technologies, Inc.  All rights reserved. * Copyright (c) 2006 *      Kaffe.org developers. See ChangeLog for details. * * See the file "license.terms" for information on usage and redistribution * of this file. */package java.awt;import java.awt.event.KeyEvent;import org.kaffe.awt.KeyHook;class DefKeyFilter  implements KeyHook{public boolean intercept ( KeyEvent e ) {	if ( e.isControlDown() && (e.getKeyCode() == KeyEvent.VK_F12) ){		if ( e.id == KeyEvent.KEY_RELEASED ) {			Component c = (Component)e.getSource();			System.out.println( "keyTgt: " + c);			System.out.println( "active: " + AWTEvent.activeWindow);			c.getToplevel().dump("");		}				return false;	}		return true;}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?