mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-10-30 18:22:25 -04:00 
			
		
		
		
	...
This commit is contained in:
		
							parent
							
								
									53447245c4
								
							
						
					
					
						commit
						01c47148e9
					
				| @ -353,9 +353,12 @@ class LineEdit(QLineEdit, LineEditECM): | |||||||
| 
 | 
 | ||||||
|     def event(self, ev): |     def event(self, ev): | ||||||
|         # See https://bugreports.qt.io/browse/QTBUG-46911 |         # See https://bugreports.qt.io/browse/QTBUG-46911 | ||||||
|         if ev.type() == ev.ShortcutOverride and ( |         try: | ||||||
|                 ev.key() in (Qt.Key_Left, Qt.Key_Right) and (ev.modifiers() & ~Qt.KeypadModifier) == Qt.ControlModifier): |             if ev.type() == ev.ShortcutOverride and ( | ||||||
|             ev.accept() |                     ev.key() in (Qt.Key_Left, Qt.Key_Right) and (ev.modifiers() & ~Qt.KeypadModifier) == Qt.ControlModifier): | ||||||
|  |                 ev.accept() | ||||||
|  |         except AttributeError: | ||||||
|  |             pass | ||||||
|         return QLineEdit.event(self, ev) |         return QLineEdit.event(self, ev) | ||||||
| 
 | 
 | ||||||
|     def complete(self, show_all=False, select_first=True): |     def complete(self, show_all=False, select_first=True): | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user