1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-23 08:20:01 +01:00
Commit Graph

17 Commits

Author SHA1 Message Date
Arnaud Bienner
ab8c6dbb69 Use Cocoa actions for search field copy/cut/paste instead of trying to reimplement the same thing with some Qt.
So unlike previously, actions now also works as expected if some part of the text is selected, or if some text is already present (for paste action: doesn't replace previous text)
2015-10-15 19:46:01 +02:00
Arnaud Bienner
399da3c7bc Convert cocoa key down/up pressed event to equivalent Qt events 2015-09-21 00:47:11 +02:00
Arnaud Bienner
bfe5042132 Don't give focus to search box when setting the reseting the text to empty string on OS X, otherwise it will get focus when it doesn't need to 2015-09-21 00:21:39 +02:00
Arnaud Bienner
e83848edd1 Seems we don't need this anymore.
Not sure when it was needed at some point, but now pressing "Esc" correctly cleans the search field. And this code (which also cleans the search field) was triggered in other situation, when pressing Cmd+A for example.
2015-09-21 00:18:57 +02:00
Arnaud Bienner
21ab4518d9 Change the way we give focus to the search bar on OS X. This prevents the text from being selected then accidentally erased by the user, when he starts typing with focus on the playlist view 2015-09-18 01:44:25 +02:00
Arnaud Bienner
fe7bc917de Check if Mac QSearchField has focus before handling the notification.
Otherwise, playlist's search field will always handle those shortcuts, and they won't work anywhere else on the same window.
Fixes #3320.
2015-03-14 01:55:46 +01:00
Arnaud Bienner
fad0ccc8c6 Fix a crash that will sometime occur on exit on Mac, caused by my recent changes 2015-03-14 01:38:03 +01:00
Arnaud Bienner
c62f2c7f4d Make QSearchField behaves like other QWidget on Mac. Some events weren't sent for this widget, and escape and return weren't working. This prevents the 'Did you mean' widget to work correctly 2015-02-23 00:01:07 +01:00
Arnaud Bienner
985568d4c1 Use actual characters instead of keycode
While keycode are "hardware independent" they don't take into account keyboard layout (e.g. 'q' keycode would actually be 'a' on an AZERTY keyboard)
Fixes issue #4708
2015-02-09 20:45:09 +01:00
John Maguire
20031870df Support keyboard shortcuts in Mac search fields.
Fixes issue #994
2012-07-23 18:17:31 +02:00
John Maguire
501baa6597 Support setFocus on Mac QSearchField. 2012-07-12 18:48:47 +02:00
John Maguire
facf8ac142 Forward setFocus() in QSearchField. 2012-07-12 16:51:11 +02:00
John Maguire
887cc0c2c8 Make mac compile again. 2012-07-05 13:57:58 +02:00
John Maguire
e928ac0349 Support selectAll() in QSearchField. 2012-06-28 12:27:32 +02:00
John Maguire
1e620321a3 Add support for returnPressed() signal to QSearchField. 2012-06-28 11:40:18 +02:00
John Maguire
6208373b86 Port search field in AlbumCoverManager to QSearchField and add support for placeholder text. 2012-06-28 11:40:05 +02:00
John Maguire
569c8295db Add qocoa and use it for the playlist search field. 2012-06-28 11:39:43 +02:00