mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 08:07:59 +01:00
Close Print Preview mode properly with :tabdelete and friends.
Fixes issue #707.
This commit is contained in:
@@ -22,6 +22,7 @@ FEATURES:
|
|||||||
8 add support for filename special characters such as %
|
8 add support for filename special characters such as %
|
||||||
8 :redir and 'verbosefile'
|
8 :redir and 'verbosefile'
|
||||||
8 Add information to dactyl/HACKING file about testing and optimization
|
8 Add information to dactyl/HACKING file about testing and optimization
|
||||||
|
7 handle Print Preview 'mode' properly
|
||||||
7 describe-key command (prompt for a key and display its binding with documentation)
|
7 describe-key command (prompt for a key and display its binding with documentation)
|
||||||
7 use ctrl-n/p in insert mode for word completion
|
7 use ctrl-n/p in insert mode for word completion
|
||||||
7 make an option to disable session saving by default when you close Firefox
|
7 make an option to disable session saving by default when you close Firefox
|
||||||
|
|||||||
@@ -67,7 +67,9 @@ var Config = Module("config", ConfigBase, {
|
|||||||
},
|
},
|
||||||
|
|
||||||
removeTab: function removeTab(tab) {
|
removeTab: function removeTab(tab) {
|
||||||
if (this.tabbrowser.mTabs.length > 1)
|
if (window.gInPrintPreviewMode)
|
||||||
|
window.PrintUtils.exitPrintPreview();
|
||||||
|
else if (this.tabbrowser.mTabs.length > 1)
|
||||||
this.tabbrowser.removeTab(tab);
|
this.tabbrowser.removeTab(tab);
|
||||||
else {
|
else {
|
||||||
if (modules.buffer.uri.spec !== "about:blank" || window.getWebNavigation().sessionHistory.count > 0) {
|
if (modules.buffer.uri.spec !== "about:blank" || window.getWebNavigation().sessionHistory.count > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user