OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). | 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). |
4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * | 9 * |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 } | 391 } |
392 | 392 |
393 _postDocumentKeyDown(event) { | 393 _postDocumentKeyDown(event) { |
394 if (event.handled) | 394 if (event.handled) |
395 return; | 395 return; |
396 | 396 |
397 var document = event.target && event.target.ownerDocument; | 397 var document = event.target && event.target.ownerDocument; |
398 var target = document ? document.deepActiveElement() : null; | 398 var target = document ? document.deepActiveElement() : null; |
399 if (target) { | 399 if (target) { |
400 var anchor = target.enclosingNodeOrSelfWithNodeName('a'); | 400 var anchor = target.enclosingNodeOrSelfWithNodeName('a'); |
401 if (anchor && anchor.preventFollow) | 401 if (anchor) |
402 event.preventDefault(); | 402 event.preventDefault(); |
403 } | 403 } |
404 | 404 |
405 if (!UI.Dialog.hasInstance() && UI.inspectorView.currentPanelDeprecated()) { | 405 if (!UI.Dialog.hasInstance() && UI.inspectorView.currentPanelDeprecated()) { |
406 UI.inspectorView.currentPanelDeprecated().handleShortcut(event); | 406 UI.inspectorView.currentPanelDeprecated().handleShortcut(event); |
407 if (event.handled) { | 407 if (event.handled) { |
408 event.consume(true); | 408 event.consume(true); |
409 return; | 409 return; |
410 } | 410 } |
411 } | 411 } |
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
995 * @override | 995 * @override |
996 * @return {?Element} | 996 * @return {?Element} |
997 */ | 997 */ |
998 settingElement() { | 998 settingElement() { |
999 return UI.SettingsUI.createSettingCheckbox( | 999 return UI.SettingsUI.createSettingCheckbox( |
1000 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); | 1000 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); |
1001 } | 1001 } |
1002 }; | 1002 }; |
1003 | 1003 |
1004 new Main.Main(); | 1004 new Main.Main(); |
OLD | NEW |