Disable tab key only while in the editing pane.
catseye
12 years ago
47 | 47 |
bit of a hack, and hashbang-sniffing will improve in the future.)
|
48 | 48 |
* No tooltips (they don't show up on hover for me anyway.) Controls are
|
49 | 49 |
documented in this README for now.
|
50 | |
* The tab key is *completely* disabled, for now.
|
|
50 |
* The tab key is disabled in the editing pane, for now.
|
51 | 51 |
|
52 | 52 |
Wishlist
|
53 | 53 |
--------
|
|
64 | 64 |
height) buffer tabs might be nice.
|
65 | 65 |
* Better source language detection via sniffing the hashbang line.
|
66 | 66 |
* Possibly force source language highlighting.
|
|
67 |
* Visible whitespace (space, tab, LF) would be *really* nice.
|
67 | 68 |
|
68 | 69 |
### editing ###
|
69 | 70 |
|
669 | 669 |
|
670 | 670 |
def on_key_press_event(widget, event):
|
671 | 671 |
if event.keyval == KEYVAL_TAB:
|
672 | |
return True
|
|
672 |
if isinstance(self.window.get_focus(), gtksourceview2.View):
|
|
673 |
return True
|
673 | 674 |
self.window.connect('key_press_event', on_key_press_event)
|
674 | 675 |
|
675 | 676 |
self.accel_group = gtk.AccelGroup()
|