[Bugs] #440 NORM: Disable Esc (exit full screen mode) accelerator in Terminal.
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Tue Mar 20 11:52:24 EDT 2012
#440: Disable Esc (exit full screen mode) accelerator in Terminal.
----------------------------+-----------------------------------------------
Reporter: wadeb | Owner: wadeb
Type: defect | Status: accepted
Priority: Normal | Milestone: Unspecified by Release Team
Component: Terminal | Version: Git as of bugdate
Severity: Minor | Keywords:
Distribution: Unspecified | Status_field: New
----------------------------+-----------------------------------------------
Comment(by humitos):
I was taking a look at this problem. I found something strange here.
I put a {{{log.debug(self)}}} and {{{log.debug(self.__key_press_cb)}}} in
{{{sugar.graphics.window.Window.__init__}}} to know if self was
!TerminalActivity and that is True.
Besides I put a {{{log.debug('TerminalActivity.__key_press_cb')}}} inside
the {{{TerminalActivity.__key_press_cb}}} method to know if it's called.
{{{
11:48 < humitos> 1332254619.978885 DEBUG Window: <TerminalActivity object
at 0x8c84a2c (SugarActivity at 0x8bdd170)>
11:48 < humitos> 1332254619.979220 DEBUG Window: <bound method
TerminalActivity.__key_press_cb of <TerminalActivity object at 0x8c84a2c
(SugarActivity at 0x8bdd170)>>
}}}
So, I don't understand why {{{TerminalActivity.__key_press_cb}}} is never
called. In fact, it's never connected by the Window class.
I commented the connection line in {{{Window}}} class and put that line
(the connection one) inside the {{{TerminalActivity}}} class and it works
properly.
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/440#comment:2>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list