зеркало из https://github.com/mozilla/gecko-dev.git
The press event always delivers the key as lowercase where key down gives you the key that was pressed
need to change str to lowercase instead of uppercase b=34630
This commit is contained in:
Родитель
ca4af3db37
Коммит
9d82e3076d
|
@ -3355,7 +3355,7 @@ nsListControlFrame::KeyPress(nsIDOMEvent* aKeyEvent)
|
|||
if (optionElement) {
|
||||
nsAutoString text;
|
||||
if (NS_OK == optionElement->GetText(text)) {
|
||||
text.ToUpperCase();
|
||||
text.ToLowerCase();
|
||||
PRUnichar firstChar = text.CharAt(0);
|
||||
if (firstChar == (PRUnichar)code) {
|
||||
mOldSelectedIndex = mSelectedIndex;
|
||||
|
|
|
@ -3553,7 +3553,7 @@ nsGfxListControlFrame::KeyPress(nsIDOMEvent* aKeyEvent)
|
|||
if (optionElement) {
|
||||
nsAutoString text;
|
||||
if (NS_OK == optionElement->GetText(text)) {
|
||||
text.ToUpperCase();
|
||||
text.ToLowerCase();
|
||||
PRUnichar firstChar = text.CharAt(0);
|
||||
if (firstChar == (PRUnichar)code) {
|
||||
mOldSelectedIndex = mSelectedIndex;
|
||||
|
|
|
@ -3355,7 +3355,7 @@ nsListControlFrame::KeyPress(nsIDOMEvent* aKeyEvent)
|
|||
if (optionElement) {
|
||||
nsAutoString text;
|
||||
if (NS_OK == optionElement->GetText(text)) {
|
||||
text.ToUpperCase();
|
||||
text.ToLowerCase();
|
||||
PRUnichar firstChar = text.CharAt(0);
|
||||
if (firstChar == (PRUnichar)code) {
|
||||
mOldSelectedIndex = mSelectedIndex;
|
||||
|
|
Загрузка…
Ссылка в новой задаче