Source/WebCore/ChangeLog

 12011-11-15 Rosen Dash <rosen.dash@motorola.com>
 2
 3 Not able to navigate the Resource tab options properly with arrow keys after adding the sticky-notes.
 4 https://bugs.webkit.org/show_bug.cgi?id=72013
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 * inspector/front-end/DatabaseQueryView.js:
 9 (WebInspector.DatabaseQueryView.prototype.afterShow): Caret is moved inside query prompt after tab
 10 key pressed on corrresponding Resource Panel Element.
 11 * inspector/front-end/ResourcesPanel.js:
 12 (WebInspector.DatabaseTreeElement.prototype.onpopulate.tableNamesCallback.get this):
 13 (WebInspector.DatabaseTreeElement.prototype.onpopulate): Removing and adding children while populating
 14 is done at same place to avoid inconsistent behaviour.
 15 (WebInspector.DatabaseTreeElement.prototype.ontab): Added.
 16 * inspector/front-end/treeoutline.js:
 17 (TreeOutline.prototype._treeKeyDown): Tab key press is handled.
 18
1192011-11-14 Pavel Feldman <pfeldman@google.com>
220
321 Web Inspector: [regression r99960] null callback access.

Source/WebCore/inspector/front-end/DatabaseQueryView.js

@@WebInspector.DatabaseQueryView.Events = {
5454}
5555
5656WebInspector.DatabaseQueryView.prototype = {
57  wasShown: function()
 57 afterShow: function()
 58 {
 59 WebInspector.setCurrentFocusElement(this._promptElement);
 60 },
 61
 62 afterTab: function()
5863 {
5964 function moveBackIfOutside()
6065 {

@@WebInspector.DatabaseQueryView.prototype = {
6570 setTimeout(moveBackIfOutside.bind(this), 0);
6671 },
6772
68  afterShow: function()
69  {
70  WebInspector.setCurrentFocusElement(this._promptElement);
71  },
72 
7373 completions: function(wordRange, force, completionsReadyCallback)
7474 {
7575 var prefix = wordRange.toString().toLowerCase();

Source/WebCore/inspector/front-end/ResourcesPanel.js

11/*
22 * Copyright (C) 2007, 2008, 2010 Apple Inc. All rights reserved.
33 * Copyright (C) 2009 Joseph Pecoraro
 4 * Portions Copyright (C) 2011 Motorola Mobility, Inc. All rights reserved.
45 *
56 * Redistribution and use in source and binary forms, with or without
67 * modification, are permitted provided that the following conditions

@@WebInspector.DatabaseTreeElement.prototype = {
14571458
14581459 onpopulate: function()
14591460 {
1460  this.removeChildren();
1461 
14621461 function tableNamesCallback(tableNames)
14631462 {
 1463 var itemURL = WebInspector.settings.resourcesLastSelectedItem.get();
 1464 this.removeChildren();
 1465
14641466 var tableNamesLength = tableNames.length;
1465  for (var i = 0; i < tableNamesLength; ++i)
1466  this.appendChild(new WebInspector.DatabaseTableTreeElement(this._storagePanel, this._database, tableNames[i]));
 1467 for (var i = 0; i < tableNamesLength; ++i) {
 1468 var element = new WebInspector.DatabaseTableTreeElement(this._storagePanel, this._database, tableNames[i]);
 1469 this.appendChild(element);
 1470 if (itemURL && itemURL === element.itemURL)
 1471 element.revealAndSelect();
 1472 }
14671473 }
14681474 this._database.getTableNames(tableNamesCallback.bind(this));
 1475 },
 1476
 1477 ontab: function()
 1478 {
 1479 if (this._database && this._database._queryView) {
 1480 view = this._database._queryView;
 1481 if (view.afterTab)
 1482 view.afterTab();
 1483 }
14691484 }
14701485}
14711486

Source/WebCore/inspector/front-end/treeoutline.js

@@TreeOutline.prototype._treeKeyDown = function(event)
404404 } else if (isEnterKey(event)) {
405405 if (this.selectedTreeElement.onenter)
406406 handled = this.selectedTreeElement.onenter();
 407 } else if (event.keyCode === 9 /* Tab */) {
 408 if (this.selectedTreeElement.ontab)
 409 handled = this.selectedTreeElement.ontab();
407410 }
408411
409412 if (nextSelectedElement) {