[Java-gnome-developer] Global keybindings (unimplemented?)
Brought to you by:
afcowie
From: Khiraly <khi...@gm...> - 2006-05-04 10:49:37
|
Hi! I have this python code: # key accelerators self.accel_group = gtk.AccelGroup() self.accel_group.connect_group(ord('q'), gtk.gdk.CONTROL_MASK, gtk.ACCEL_LOCKED, self.delete) self.accel_group.connect_group(ord('w'), gtk.gdk.CONTROL_MASK, gtk.ACCEL_LOCKED, self.remove_current_book) self.accel_group.connect_group(ord('t'), gtk.gdk.CONTROL_MASK, gtk.ACCEL_LOCKED, self.add_new_book) This python code is implementing global keybindings: Ctrl-Q - quit the application Ctrl-W - close the active notebook page Ctrl-T - add a new notebook page Can somebody help me to port this to java? Im not finding any connect_group/connectGroup method anywhere. The first line, its simple: AccelGroup accelGroup = new AccelGroup(); But the others not. Any help is really appreciate! Khiraly |