| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 return false; | 74 return false; |
| 75 WebInspector.Dialog.show(sourceView.element, new WebInspector.GoToLineDialog
(sourceView)); | 75 WebInspector.Dialog.show(sourceView.element, new WebInspector.GoToLineDialog
(sourceView)); |
| 76 return true; | 76 return true; |
| 77 } | 77 } |
| 78 | 78 |
| 79 /** | 79 /** |
| 80 * @return {!WebInspector.KeyboardShortcut.Descriptor} | 80 * @return {!WebInspector.KeyboardShortcut.Descriptor} |
| 81 */ | 81 */ |
| 82 WebInspector.GoToLineDialog.createShortcut = function() | 82 WebInspector.GoToLineDialog.createShortcut = function() |
| 83 { | 83 { |
| 84 var isMac = WebInspector.isMac(); | |
| 85 var shortcut; | |
| 86 return WebInspector.KeyboardShortcut.makeDescriptor("g", WebInspector.Keyboa
rdShortcut.Modifiers.Ctrl); | 84 return WebInspector.KeyboardShortcut.makeDescriptor("g", WebInspector.Keyboa
rdShortcut.Modifiers.Ctrl); |
| 87 } | 85 } |
| 88 | 86 |
| 89 WebInspector.GoToLineDialog.prototype = { | 87 WebInspector.GoToLineDialog.prototype = { |
| 90 focus: function() | 88 focus: function() |
| 91 { | 89 { |
| 92 WebInspector.setCurrentFocusElement(this._input); | 90 WebInspector.setCurrentFocusElement(this._input); |
| 93 this._input.select(); | 91 this._input.select(); |
| 94 }, | 92 }, |
| 95 | 93 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 107 this._view.highlightPosition(lineNumber); | 105 this._view.highlightPosition(lineNumber); |
| 108 }, | 106 }, |
| 109 | 107 |
| 110 onEnter: function() | 108 onEnter: function() |
| 111 { | 109 { |
| 112 this._applyLineNumber(); | 110 this._applyLineNumber(); |
| 113 }, | 111 }, |
| 114 | 112 |
| 115 __proto__: WebInspector.DialogDelegate.prototype | 113 __proto__: WebInspector.DialogDelegate.prototype |
| 116 } | 114 } |
| OLD | NEW |