Opened 9 years ago

Closed 9 years ago

#3233 closed enhancement (fixed)

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@… Blocked By:
Blocking: 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

Change History (10)

comment:1 Changed 9 years ago by nicfit

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

comment:2 follow-up: Changed 9 years ago by Alexander Borovsky <alex.borovsky@…>

Yes, Ctrl+L works.

Also Esc button should close history window

comment:3 Changed 9 years 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'):

comment:4 Changed 9 years ago by asterix

  • Milestone set to 0.12
  • Resolution set to fixed
  • Status changed from new to closed

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

comment:5 in reply to: ↑ 2 Changed 9 years ago by muelli

  • Resolution fixed deleted
  • Status changed from closed to reopened

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

Also Esc button should close history window

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

comment:6 Changed 9 years ago by muelli

  • Cc muelli@… added

comment:7 Changed 9 years ago by anonymous

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

comment:8 Changed 9 years ago by asterix

it was me :)

comment:9 Changed 9 years ago by Muelli

But pressing Escape in History doesn't close it.

comment:10 Changed 9 years ago by asterix

  • Resolution set to fixed
  • Status changed from reopened to closed

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

Note: See TracTickets for help on using tickets.