Add non-breaking space as Fn+Space

This commit is contained in:
ArenaL5 2022-03-26 21:08:53 +00:00 committed by Jules Aguillon
parent 4355225646
commit 363a65223c
2 changed files with 2 additions and 0 deletions

View File

@ -204,6 +204,7 @@ class KeyModifier
case "!": name = "¡"; break; case "!": name = "¡"; break;
case "?": name = "¿"; break; case "?": name = "¿"; break;
case "tab": name = "\\t"; break; case "tab": name = "\\t"; break;
case "space": name = "nbsp"; break;
case "": case "£": return removed_key; // Avoid showing these twice case "": case "£": return removed_key; // Avoid showing these twice
default: return k; default: return k;
} }

View File

@ -265,5 +265,6 @@ class KeyValue
addKey("\\t", "\\t", '\t', EVENT_NONE, 0); // Send the tab character addKey("\\t", "\\t", '\t', EVENT_NONE, 0); // Send the tab character
addKey("space", "\r", ' ', KeyEvent.KEYCODE_SPACE, FLAG_KEY_FONT | FLAG_SMALLER_FONT); addKey("space", "\r", ' ', KeyEvent.KEYCODE_SPACE, FLAG_KEY_FONT | FLAG_SMALLER_FONT);
addKey("nbsp", "\u237d", '\u00a0', EVENT_NONE, FLAG_KEY_FONT | FLAG_SMALLER_FONT);
} }
} }