return true
}
+// Deselect deselects on the current cursor
+func (h *BufPane) Deselect() bool {
+ h.Cursor.Deselect(true)
+ return true
+}
+
+// ClearInfo clears the infobar
+func (h *BufPane) ClearInfo() bool {
+ InfoBar.Message("")
+ return true
+}
+
// Quit this will close the current tab or view that is open
func (h *BufPane) Quit() bool {
quit := func() {
"SkipMultiCursor": (*BufPane).SkipMultiCursor,
"JumpToMatchingBrace": (*BufPane).JumpToMatchingBrace,
"JumpLine": (*BufPane).JumpLine,
+ "Deselect": (*BufPane).Deselect,
+ "ClearInfo": (*BufPane).ClearInfo,
"None": (*BufPane).None,
// This was changed to InsertNewline but I don't want to break backwards compatibility
"F4": "Quit",
"F7": "Find",
"F10": "Quit",
- "Esc": "Escape",
+ "Esc": "Deselect,ClearInfo,RemoveAllMultiCursors",
// Mouse bindings
"MouseWheelUp": "ScrollUp",
"F4": "Quit",
"F7": "Find",
"F10": "Quit",
- "Esc": "Escape",
+ "Esc": "Deselect,ClearInfo,RemoveAllMultiCursors",
// Mouse bindings
"MouseWheelUp": "ScrollUp",