| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
| 3 * Copyright (C) 2006-2015 Eyeo GmbH | 3 * Copyright (C) 2006-2015 Eyeo GmbH |
| 4 * | 4 * |
| 5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
| 6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
| 7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
| 8 * | 8 * |
| 9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 47 | 47 |
| 48 document.getElementById("filters").focus(); | 48 document.getElementById("filters").focus(); |
| 49 } | 49 } |
| 50 window.addEventListener("load", init, false); | 50 window.addEventListener("load", init, false); |
| 51 | 51 |
| 52 function onKeyDown(event) | 52 function onKeyDown(event) |
| 53 { | 53 { |
| 54 if (event.keyCode == 27) | 54 if (event.keyCode == 27) |
| 55 { | 55 { |
| 56 event.preventDefault(); | 56 event.preventDefault(); |
| 57 closeDialog(); | 57 closeDialog(false); |
|
Wladimir Palant
2015/03/04 21:26:14
Nit: This change is unrelated. LGTM for pushing it
Sebastian Noack
2015/03/04 21:36:24
Yep, right. Leftover from earlier version of the p
| |
| 58 } | 58 } |
| 59 else if (event.keyCode == 13 && !event.shiftKey && !event.ctrlKey) | 59 else if (event.keyCode == 13 && !event.shiftKey && !event.ctrlKey) |
| 60 { | 60 { |
| 61 event.preventDefault(); | 61 event.preventDefault(); |
| 62 addFilters(); | 62 addFilters(); |
| 63 } | 63 } |
| 64 } | 64 } |
| 65 | 65 |
| 66 function addFilters() | 66 function addFilters() |
| 67 { | 67 { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 125 ); | 125 ); |
| 126 dragCoords = [event.screenX, event.screenY]; | 126 dragCoords = [event.screenX, event.screenY]; |
| 127 } | 127 } |
| 128 } | 128 } |
| 129 | 129 |
| 130 function onDragEnd(event) | 130 function onDragEnd(event) |
| 131 { | 131 { |
| 132 onDrag(event); | 132 onDrag(event); |
| 133 dragCoords = null; | 133 dragCoords = null; |
| 134 } | 134 } |
| OLD | NEW |