[kupfer] browser: Allow toggling textmode with Ctrl+. at any time



commit 212cca19fca81fa5537f928e9618d620110afa2b
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Thu Sep 10 05:23:05 2009 +0200

    browser: Allow toggling textmode with Ctrl+. at any time

 kupfer/browser.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/kupfer/browser.py b/kupfer/browser.py
index fed06a3..961758a 100644
--- a/kupfer/browser.py
+++ b/kupfer/browser.py
@@ -1019,11 +1019,11 @@ class Interface (gobject.GObject):
 		return val
 
 	def toggle_text_mode_quick(self):
-		"""Toggle text mode or not, if we can, without reset"""
+		"""Toggle text mode or not, if we can or not, without reset"""
 		if self._is_text_mode:
 			self._is_text_mode = False
 		else:
-			self._is_text_mode = self.get_can_enter_text_mode()
+			self._is_text_mode = True
 		self.update_text_mode()
 
 	def update_text_mode(self):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]