Thursday, March 22, 2007

Как в Gaim сделать комбинацию клавиш CTRL-Enter

Нашёл решение проблемы.

1. Открываем или создаём (если его ещё нет) файл .gtkrc-2.0 в домашней директории.
2. Добавляем в него следующие строки:

Код

#############################
#key bindings
#############################

#to let you edit your gaim key bindings
gtk-can-change-accels = 1

# In Gaim 2.0.0 and later, you can set custom keybindings in your theme. Here
# is an example to follow

binding "my-bindings"
{
# enter inserts a newline
bind "Return" { "insert-at-cursor" ("\n") }
# ctrl-s sends message
bind "Return" { "message_send" () }
}

widget "*gaim_gtkconv_entry" binding "my-bindings"