git @ Cat's Eye Technologies tideay / 48b0eb8
Disable tab key only while in the editing pane. catseye 12 years ago
2 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
4747 bit of a hack, and hashbang-sniffing will improve in the future.)
4848 * No tooltips (they don't show up on hover for me anyway.) Controls are
4949 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.
5151
5252 Wishlist
5353 --------
6464 height) buffer tabs might be nice.
6565 * Better source language detection via sniffing the hashbang line.
6666 * Possibly force source language highlighting.
67 * Visible whitespace (space, tab, LF) would be *really* nice.
6768
6869 ### editing ###
6970
669669
670670 def on_key_press_event(widget, event):
671671 if event.keyval == KEYVAL_TAB:
672 return True
672 if isinstance(self.window.get_focus(), gtksourceview2.View):
673 return True
673674 self.window.connect('key_press_event', on_key_press_event)
674675
675676 self.accel_group = gtk.AccelGroup()