Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(458)

Side by Side Diff: Source/devtools/front_end/inspector.js

Issue 101933006: [DevTools] Inspector should allow resetting zoom level using the numpad0 key. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 } 691 }
692 break; 692 break;
693 case 109: // - 693 case 109: // -
694 case 189: // - 694 case 189: // -
695 if (isValidZoomShortcut) { 695 if (isValidZoomShortcut) {
696 WebInspector._zoomOut(); 696 WebInspector._zoomOut();
697 event.consume(true); 697 event.consume(true);
698 } 698 }
699 break; 699 break;
700 case 48: // 0 700 case 48: // 0
701 case 96: // Numpad 0
701 // Zoom reset shortcut does not allow "Shift" when handled by the br owser. 702 // Zoom reset shortcut does not allow "Shift" when handled by the br owser.
702 if (isValidZoomShortcut && !event.shiftKey) { 703 if (isValidZoomShortcut && !event.shiftKey) {
703 WebInspector._resetZoom(); 704 WebInspector._resetZoom();
704 event.consume(true); 705 event.consume(true);
705 } 706 }
706 break; 707 break;
707 } 708 }
708 709
709 } 710 }
710 711
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 1012
1012 /** 1013 /**
1013 * @return {string} 1014 * @return {string}
1014 */ 1015 */
1015 WebInspector.getSelectionForegroundColor = function() 1016 WebInspector.getSelectionForegroundColor = function()
1016 { 1017 {
1017 return InspectorFrontendHost.getSelectionForegroundColor(); 1018 return InspectorFrontendHost.getSelectionForegroundColor();
1018 } 1019 }
1019 1020
1020 window.DEBUG = true; 1021 window.DEBUG = true;
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698