Commit e589d6a
committed
menu@cinnamon.org: Handle another condition in the key-press-event
handler.
If the search has no results, _setKeyFocusToCurrentCategoryButton()
will not do anything useful, leaving this._activeContainer still
null. In this case the handler should just return, letting the
search entry have the event.
This eliminates this warning when using the search feature:
Gjs-CRITICAL **: 11:56:45.550: JS ERROR: TypeError: this._activeContainer is null
_onMenuKeyPress@/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js:1721:20
Other changes:
- Use Clutter.EVENT_STOP/PROPAGATE instead of true/false1 parent af5f736 commit e589d6a
1 file changed
Lines changed: 13 additions & 7 deletions
File tree
Lines changed: 13 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1677 | 1677 | | |
1678 | 1678 | | |
1679 | 1679 | | |
1680 | | - | |
| 1680 | + | |
1681 | 1681 | | |
1682 | 1682 | | |
1683 | 1683 | | |
| |||
1709 | 1709 | | |
1710 | 1710 | | |
1711 | 1711 | | |
1712 | | - | |
| 1712 | + | |
1713 | 1713 | | |
1714 | 1714 | | |
1715 | 1715 | | |
1716 | 1716 | | |
1717 | 1717 | | |
1718 | 1718 | | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
1719 | 1725 | | |
1720 | 1726 | | |
1721 | 1727 | | |
| |||
1771 | 1777 | | |
1772 | 1778 | | |
1773 | 1779 | | |
1774 | | - | |
| 1780 | + | |
1775 | 1781 | | |
1776 | 1782 | | |
1777 | 1783 | | |
1778 | | - | |
| 1784 | + | |
1779 | 1785 | | |
1780 | 1786 | | |
1781 | 1787 | | |
1782 | 1788 | | |
1783 | 1789 | | |
1784 | | - | |
| 1790 | + | |
1785 | 1791 | | |
1786 | 1792 | | |
1787 | 1793 | | |
1788 | 1794 | | |
1789 | 1795 | | |
1790 | 1796 | | |
1791 | | - | |
| 1797 | + | |
1792 | 1798 | | |
1793 | 1799 | | |
1794 | 1800 | | |
| |||
1799 | 1805 | | |
1800 | 1806 | | |
1801 | 1807 | | |
1802 | | - | |
| 1808 | + | |
1803 | 1809 | | |
1804 | 1810 | | |
1805 | 1811 | | |
| |||
0 commit comments