Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for Desire Z fixed Scandinavian keyboard layout ie. for Cyanogenmod #16

Merged
merged 1 commit into from
Nov 16, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
43 changes: 21 additions & 22 deletions src/org/woltage/irssiconnectbot/service/TerminalKeyListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -283,39 +283,38 @@ && sendFunctionKey(keyCode))
* curMetaState == 3 if FN AND shift key is pressed or locked
*/
if(curMetaState == 0) {
// Desire Z, lowercase if curMetaState == 0! Problem with HW keymapping?
if(key == 0xc4) //Ä
key = 0xe4; //ä
else if(key == 0xd6) //Ö
key = 0xf6; //ö
else if(key == 0xc5) //Å
key = 0xe5; //å
else if(key == 0xd8) { //Ø
if(prefs.getString("htcDesireZfix", "false").equals("true")){ // Bind's Ø to CTRL
// Desire Z "All fixes (Æ = Alt, Ø = Ctrl)"
if(prefs.getString("htcDesireZfix", "false").equals("true")){ // Bind's Ø and ø to CTRL
if(key == 0xd8 || key == 0xf8) {
metaPress(META_CTRL_ON);
bridge.redraw();
return true;
}else{
key = 0xf8; //ø
}
} else if(key == 0xc6) { //Æ
if(prefs.getString("htcDesireZfix", "false").equals("true")){ // Bind's Æ to ALT
} else if(key == 0xc6 || key == 0xe6) { // Bind's Æ and æ to ALT
sendEscape();
bridge.redraw();
return true;
}else{
key = 0xe6; //æ
}
}
// Desire Z, lowercase if curMetaState == 0! Problem with HW keymapping?
if(key == 0xC4) //Ä
key = 0xE4; //ä
else if(key == 0xD6) //Ö
key = 0xF6; //ö
else if(key == 0xC5) //Å
key = 0xE5; //å
else if(key == 0xD8) //Ø
key = 0xF8; //ø
else if(key == 0xC6) //Æ
key = 0xE6; //æ
}
else if(curMetaState == 2) {
// Desire Z, <>| if FN pressed or locked
if(key == 0xc4) //Ä
key = 0x3c; //<
else if(key == 0xd6) //Ö
key = 0x3e; //>
else if(key == 0xc5) //Å
key = 0x7c; //|
if(key == 0xC4 || key == 0xE4) //Ä or ä
key = 0x3C; //<
else if(key == 0xD6 || key == 0xF6) //Ö or ö
key = 0x3E; //>
else if(key == 0xC5 || key == 0XE5) //Å or å
key = 0x7C; //|
}
}

Expand Down