-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Normal
-
Affects Version/s: 3.6.0
-
Component/s: None
-
Security Level: Jimmy
-
None
Steps to Reproduce
- Open a blank sheet in ZSS
- Right click on a cell, A1, and select an item on the context menu, e.g. cut, copy, or apply formatting on it [any category]
- the selection box is still on the cell A1
- type any character to enter A1
Actual Result
Cannot type anything in to the cell, A1, until you click A1 again
Expected Result
Users can type characters into A1 without clicking it.
Debug Information
- 2.6.FL, 3.5.0, and 3.6.0 all have the same behavior.
- Excel and google spreadsheet can get focus back to a cell after closing a dialog or a context menu.
Workaround
<script defer="true"><![CDATA[ var oldMethod = zss.StylePanel.prototype._closeStylePanel; zss.StylePanel.prototype._closeStylePanel = function () { oldMethod.apply(this, arguments); jq(".zsfocus").focus(); }; DialogCloseListener = zk.$extends(zk.Object, { onFloatUp: function(ctrl) { //at least 2 cases after open the context menu: open a dialog (like "format cell"), or click a menuitem if (ctrl.origin.widgetName == 'button' || ctrl.origin.widgetName == 'listbox'){ jq(".zsfocus").focus(); } } }); var listener = new DialogCloseListener(); zWatch.listen({ onFloatUp: listener }); ]]></script>