mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 00:28:00 +01:00
Fix <S-Insert> when newlines are involved.
This commit is contained in:
@@ -1040,9 +1040,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
|||||||
});
|
});
|
||||||
|
|
||||||
case dactyl.NEW_WINDOW:
|
case dactyl.NEW_WINDOW:
|
||||||
var handler = Cc['@mozilla.org/browser/clh;1'].getService(Ci.nsIBrowserHandler);
|
let win = window.openDialog(document.documentURI, "_blank", "chrome,all,dialog=no");
|
||||||
let win = window.openDialog(document.documentURI, "_blank", "chrome,all,dialog=no",
|
|
||||||
handler.defaultArgs);
|
|
||||||
win.loadURI(url, null, postdata);
|
win.loadURI(url, null, postdata);
|
||||||
browser = win.getBrowser();
|
browser = win.getBrowser();
|
||||||
return win.content;
|
return win.content;
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ var Editor = Module("editor", {
|
|||||||
let start = elem.selectionStart; // caret position
|
let start = elem.selectionStart; // caret position
|
||||||
let end = elem.selectionEnd;
|
let end = elem.selectionEnd;
|
||||||
elem.value = elem.value.substring(0, start) + text + elem.value.substring(end);
|
elem.value = elem.value.substring(0, start) + text + elem.value.substring(end);
|
||||||
elem.selectionStart = start + (toStart ? 0 : text.length);
|
elem.selectionStart = Math.min(start + (toStart ? 0 : text.length), elem.value.length);
|
||||||
elem.selectionEnd = elem.selectionStart;
|
elem.selectionEnd = elem.selectionStart;
|
||||||
|
|
||||||
elem.scrollTop = top;
|
elem.scrollTop = top;
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ function defineModule(name, params) {
|
|||||||
defineModule.loadLog = [];
|
defineModule.loadLog = [];
|
||||||
Object.defineProperty(defineModule.loadLog, "push", {
|
Object.defineProperty(defineModule.loadLog, "push", {
|
||||||
value: function (val) {
|
value: function (val) {
|
||||||
if (false)
|
if (true)
|
||||||
defineModule.dump(val + "\n");
|
defineModule.dump(val + "\n");
|
||||||
this[this.length] = Date.now() + " " + val;
|
this[this.length] = Date.now() + " " + val;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
1.0b4.1:
|
1.0b5pre:
|
||||||
* Extensive Firefox 4 support, including:
|
* Extensive Firefox 4 support, including:
|
||||||
- Fully restartless. Can now be installed, uninstalled,
|
- Fully restartless. Can now be installed, uninstalled,
|
||||||
enabled, disabled, and upgraded without restarting Firefox.
|
enabled, disabled, and upgraded without restarting Firefox.
|
||||||
@@ -81,7 +81,7 @@
|
|||||||
- Added -agent flag to :style.
|
- Added -agent flag to :style.
|
||||||
- The -append flag now updates existing properties rather than
|
- The -append flag now updates existing properties rather than
|
||||||
simply appending its arguments to the previous value.
|
simply appending its arguments to the previous value.
|
||||||
- Active filters are not highlighted in :style listings.
|
- Active filters are now highlighted in :style listings.
|
||||||
- :style-related commands now divide their completions between
|
- :style-related commands now divide their completions between
|
||||||
those active and inactive for the current site.
|
those active and inactive for the current site.
|
||||||
- CSS property name completion is now available.
|
- CSS property name completion is now available.
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<Description about="urn:mozilla:install-manifest"
|
<Description about="urn:mozilla:install-manifest"
|
||||||
em:id="pentadactyl@dactyl.googlecode.com"
|
em:id="pentadactyl@dactyl.googlecode.com"
|
||||||
em:name="Pentadactyl"
|
em:name="Pentadactyl"
|
||||||
em:version="1.0b4.1"
|
em:version="1.0b5pre"
|
||||||
em:description="Firefox for Vim and Links addicts"
|
em:description="Firefox for Vim and Links addicts"
|
||||||
em:homepageURL="http://dactyl.sourceforge.net/pentadactyl"
|
em:homepageURL="http://dactyl.sourceforge.net/pentadactyl"
|
||||||
em:iconURL="chrome://pentadactyl/skin/icon.png"
|
em:iconURL="chrome://pentadactyl/skin/icon.png"
|
||||||
|
|||||||
Reference in New Issue
Block a user