Ticket #3233 (closed enhancement: fixed)

Opened 18 months ago

Last modified 14 months ago

Key shortcuts

Reported by: alex.borovsky@… Owned by: asterix
Priority: normal Milestone: 0.12
Component: usability Version: 0.11.1
Severity: normal Keywords:
Cc: muelli@… OS: All

Description

Please add key shortcuts (like in Psi):

Ctrl+H in Chat window / main window (with selected contact) - show contact history

Ctrl+I in Chat window / main window (with selected contact) - show contact information

Ctrl+L in Chat window - Clear

Attachments

Change History

  Changed 18 months ago by nicfit

CTRL+L already works, I use it all the time.

follow-up: ↓ 5   Changed 18 months ago by Alexander Borovsky <alex.borovsky@…>

Yes, Ctrl+L works.

Also Esc button should close history window

  Changed 15 months ago by nusse+gajim@…

I have attached a really small patch. It does not handle groupchats right now and might have other problems.

--- src/chat_control.py (revision 8563)
+++ src/chat_control.py (working copy)
@@ -391,6 +391,20 @@
                                        event.keyval == gtk.keysyms.Page_Up:
                                self.parent_win.notebook.emit('key_press_event', event)
                                return True
+                       # CTRL + h: show history
+                       elif event.keyval == gtk.keysyms.h:
+                               jid = self.contact.jid
+
+                               if gajim.interface.instances['logs'].has_key(jid):
+                                       gajim.interface.instances['logs'][jid].window.present()
+                               else:
+                                       gajim.interface.instances['logs'][jid] = \
+                                                       history_window.HistoryWindow(jid, self.account)
+                               return True
+                       # CTRL + i: show contact information
+                       elif event.keyval == gtk.keysyms.i:
+                               gajim.interface.roster.on_info(widget, self.contact, self.account)
+
                elif event.keyval == gtk.keysyms.m and \
                        (event.state & gtk.gdk.MOD1_MASK): # alt + m opens emoticons menu
                        if gajim.config.get('emoticons_theme'):

  Changed 15 months ago by asterix

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 0.12

(In [8817]) add key shortcut to open history and information window. fixes #3233

in reply to: ↑ 2   Changed 14 months ago by muelli

  • status changed from closed to reopened
  • resolution fixed deleted

Replying to Alexander Borovsky <alex.borovsky@gmail.com>:

Also Esc button should close history window

As far as I can see from [8817] this is has not been fixed. Hence reopening.

  Changed 14 months ago by muelli

  • cc muelli@… added

  Changed 14 months ago by anonymous

it works for me, ctrl+h or i in chat window opens history or info window

  Changed 14 months ago by asterix

it was me :)

  Changed 14 months ago by Muelli

But pressing Escape in History doesn't close it.

  Changed 14 months ago by asterix

  • status changed from reopened to closed
  • resolution set to fixed

(In [8898]) close history window on ESC. fixes #3233

Add/Change #3233 (Key shortcuts)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.