зеркало из https://github.com/mozilla/gecko-dev.git
Radio focus handling not quite correct (91880). Patch by Neil <neil@parkwaycc.co.uk>. r=hwaara sr=blake
This commit is contained in:
Родитель
4c4468f452
Коммит
27763b6faf
|
@ -171,8 +171,10 @@
|
|||
it is not (Windows platform behaviour is for the group to receive focus,
|
||||
not the item -->
|
||||
<handler event="focus">
|
||||
this.setAttribute("focused", "true");
|
||||
if (this.focusedItem == null) this.focusedItem = this.selectedItem;
|
||||
if (event.target == this) {
|
||||
this.setAttribute("focused", "true");
|
||||
if (this.focusedItem == null) this.focusedItem = this.selectedItem;
|
||||
}
|
||||
</handler>
|
||||
<handler event="blur">
|
||||
this.removeAttribute("focused");
|
||||
|
|
Загрузка…
Ссылка в новой задаче