PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 729 - Keys.onEnterPressed doesn't register
: Keys.onEnterPressed doesn't register
Status: CLOSED INVALID
Product: PySide
Classification: Unclassified
Component: QtDeclarative
: HEAD
: PC Linux
: P3 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-03-12 22:50 EET by forensic7278
Modified: 2011-04-29 18:07 EEST (History)
9 users (show)

See Also:


Attachments
a simple editor that saves a file or loads a file (1.21 KB, text/x-python)
2011-03-21 19:50 EET, forensic7278
Details
has a TextInput on top,and a TextEdit below, with the top being the space for the filename and the bottom the space for the content (860 bytes, application/octet-stream)
2011-03-21 19:57 EET, forensic7278
Details

Note You need to log in before you can comment on or make changes to this bug.
Description forensic7278 2011-03-12 22:50:55 EET
It seems to work on my separate keyboard's numpad Enter key, but neither the
one on my laptop or the main enter key seem to trigger the signal.  I'm on
PySide 1.0.1
Comment 1 Hugo Parente Lima 2011-03-15 16:33:19 EET
Do you have some code example to demostrate the problem?
Comment 2 Hugo Parente Lima 2011-03-21 18:59:21 EET
ping
Comment 3 forensic7278 2011-03-21 19:50:34 EET
Created attachment 286 [details]
a simple editor that saves a file or loads a file

depends on onEnterPressedexample.qml
Comment 4 forensic7278 2011-03-21 19:57:26 EET
Created attachment 287 [details]
has a TextInput on top,and a TextEdit below, with the top being the space for
the filename and the bottom the space for the content

you can manually click to select the top or bottom areas.. they're both white
so it's not possible to see the difference.  the intended usage is to type a
file name into the TextInput(top) and press Enter if you want to load a file's
contents into the TextEdit(bottom) area.  This is where the problem arises.
Comment 5 Hugo Parente Lima 2011-03-21 20:38:46 EET
Thanks for the code examples, they will help us to investigate/fix the issue.
Comment 6 renato filho 2011-04-13 22:07:32 EEST
The main enter on keybord has a different event. To handle that you need use
the
'Keys.onReturnPressed' signal.

something like that:

Keys.onReturnPressed: {
            Logic.loadFileName(fileNameArea.text)
        }
Comment 7 renato filho 2011-04-29 18:07:55 EEST
PySide release 1.0.2