[Thinlet-development] thinlet/src/thinlet Thinlet.java,1.11,1.12
Brought to you by:
bajzat
|
From: <ab...@us...> - 2003-04-15 20:13:14
|
Update of /cvsroot/thinlet/thinlet/src/thinlet
In directory sc8-pr-cvs1:/tmp/cvs-serv28768
Modified Files:
Thinlet.java
Log Message:
Allow input of characters with AltGraph modifier (common for certain
keyboard layouts, e.g. in Nordic countries).
Index: Thinlet.java
===================================================================
RCS file: /cvsroot/thinlet/thinlet/src/thinlet/Thinlet.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- Thinlet.java 31 Mar 2003 19:11:45 -0000 1.11
+++ Thinlet.java 15 Apr 2003 20:13:08 -0000 1.12
@@ -3007,7 +3007,9 @@
int iend = end;
String insert = null;
if (editable && (keychar != 0) &&
- ((modifiers == 0) || (modifiers == InputEvent.SHIFT_MASK))) {
+ ( (modifiers == 0) ||
+ (modifiers == InputEvent.SHIFT_MASK) ||
+ (modifiers == InputEvent.ALT_GRAPH_MASK))) {
insert = String.valueOf((char) keychar);
}
else if (editable && (keycode == KeyEvent.VK_ENTER)) {
|