Hello,
Here's a small patch to a direct keybinding from a chat to the contact
list. I put it to Ctrl-v keybinding by default.
Regards,
Iulian
PS: if I get positive feedback and the git-mob comes online again, I'll
commit it there.
diff --git a/src/icqconf.cc b/src/icqconf.cc
index f34f968..e7ce337 100644
--- a/src/icqconf.cc
+++ b/src/icqconf.cc
@@ -272,6 +272,7 @@ void icqconf::loadkeys() {
of << "bind editor\t\\co\thistory" << endl;
of << "bind editor\t\\cn\tnext_chat" << endl;
of << "bind editor\t\\cb\tprev_chat" << endl;
+ of << "bind editor\t\\cv\tout_chat" << endl;
of << "bind editor\t\\a?\tinfo" << endl;
of << "bind editor\t<F2>\tshow_urls" << endl;
of << "bind editor\t<F9>\tfullscreen" << endl << endl;
@@ -374,6 +375,7 @@ void icqconf::loadkeys() {
if(param == "history") k.action = key_history; else
if(param == "next_chat") k.action = key_next_chat; else
if(param == "prev_chat") k.action = key_prev_chat; else
+ if(param == "out_chat") k.action = key_out_chat; else
if(param == "fetch_away_message") k.action =
key_fetch_away_message; else
if(param == "user_menu") k.action = key_user_menu; else
if(param == "general_menu") k.action = key_general_menu; else
@@ -447,6 +449,7 @@ void icqconf::loadkeys() {
if(face.action2key(key_history, section_editor).empty())
if(face.action2key(key_next_chat, section_editor).empty())
if(face.action2key(key_prev_chat, section_editor).empty())
+ if(face.action2key(key_out_chat, section_editor).empty())
if(face.action2key(key_info, section_editor).empty())
if(face.action2key(key_show_urls, section_editor).empty())
if(face.action2key(key_fullscreen, section_editor).empty())
diff --git a/src/icqconf.h b/src/icqconf.h
index c5423e6..13ecd98 100644
--- a/src/icqconf.h
+++ b/src/icqconf.h
@@ -84,6 +84,7 @@ enum cicq_keybindings {
key_search_again,
key_next_chat,
key_prev_chat,
+ key_out_chat,
key_show_urls,
key_rss_check,
key_multiple_recipients,
diff --git a/src/icqface.cc b/src/icqface.cc
index 26ba34e..f4f8cb4 100644
--- a/src/icqface.cc
+++ b/src/icqface.cc
@@ -3484,6 +3484,11 @@ int icqface::editmsgkeys(texteditor &e, int k) {
face.editdone = false;
face.next_chat(true);
return -1;
+ case key_out_chat:
+ face.editdone = false;
+ face.next_chat(false);
+ face.last_selected = (icqcontact* ) clist.at(0);
+ return -1;
case key_info:
cicq.userinfo(face.passinfo);
break;
--
_______________________________________________
Centerim-devel mailing list
[email protected]
http://centerim.org/mailman/listinfo/centerim-devel
http://www.centerim.org/