Project

General

Profile

Actions

Bug #21258

closed

Line-break (Shift+Enter) doesn't work in Opera 10 on Mac

Added by Steffen Gebert over 14 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2009-10-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

While pressing Enter key in RTE causes a new paragraph (<p>), Shift+Enter usually creates a line-break (<br/>).

Line-break doesn't work in Opera 10 (neither 4_2, nor in trunk). It always results in a new paragraph.

(issue imported from #M12216)


Files

rtehtmlarea_bugfix_12216_trunk_v2.patch (658 Bytes) rtehtmlarea_bugfix_12216_trunk_v2.patch Administrator Admin, 2009-11-02 20:26
Actions #1

Updated by Stanislas Rolland over 14 years ago

Do I understand well? I just re-tested this with Opera 10.01 and TYPO3 4.3 (SVN trunk): shift+enter does insert a br element.

Actions #2

Updated by Staffan Ericsson over 14 years ago

Could it be a plattform/browser issue?
OS could be helpful in this questions - as browser can behave slightly diffrent depending on OS

Actions #3

Updated by Steffen Gebert over 14 years ago

Indeed, you're right. It appears only on my MacOS, not in a Windows VM.

@Stanislas Rolland
Do you have a Mac in reach? Otherwise tell me, how I can help!

Actions #4

Updated by Stanislas Rolland over 14 years ago

I do not have access to a Mac.

Does it work in Safari on Mac? Does it work in Firefox on Mac?

Actions #5

Updated by Steffen Gebert over 14 years ago

Yes, works in both.

Actions #6

Updated by Stanislas Rolland over 14 years ago

Please test the attached patch against trunk on Mac.

Do not forget to clear RTE cache and Opera cache before testing.

Actions #7

Updated by Steffen Gebert over 14 years ago

No, unfortunately this doesn't help :(

Actions #8

Updated by Stanislas Rolland over 14 years ago

@Steffen: Would you know if this issue is new on Mac with Opera 10 or if it was already so with Opera 9.5?

Actions #9

Updated by Steffen Gebert over 14 years ago

Just tried 9.6 and it was already there.

Actions #10

Updated by Stanislas Rolland over 14 years ago

Second trial... Please test patch version 2 against trunk.

Actions #11

Updated by Steffen Gebert over 14 years ago

Unfortunately not. If you need remote access, just contact me on skype (steffengebert)!

Actions #12

Updated by Stanislas Rolland over 14 years ago

Well, remote access will not be of any help as the problem is on the client side. I don't understand why Opera handles this key combination differently on Windows and Mac...

Actions #13

Updated by Steffen Gebert over 14 years ago

Of course, I meant remote access to my mac. Do you have a small testsuite, what key codes are fired, when I press the keys?
Have no experience with those things.

Actions #14

Updated by Stanislas Rolland over 14 years ago

@Steffen:
Please try to access this page from Opera 10 on Mac OS X:
http://www.sjbr.ca/fr/commentaires.html

Simply press Shift+Enter in the editing area. You should get a JS alert reporting: "Enter was pressed. ev.shiftKey = true". Let me know if you get the alert.

Please clear the browser cache before doing the test.

Actions #15

Updated by Steffen Gebert over 14 years ago

"Enter was pressed. shiftKey= false"
sounds not good ;)

In a Windows VM, I get shiftKey=true, so it's opera itself which eats up the shift :(

Actions #16

Updated by Steffen Gebert over 14 years ago

I made some tests: <input type="text" onkeyup="alert(event.shiftKey);" /> returns true, if I press shift+enter. So in principle, the event has IMHO the corrent information attached.

Actions #17

Updated by Stanislas Rolland over 14 years ago

What about on keypress?

Actions #18

Updated by Steffen Gebert over 14 years ago

same

Actions #19

Updated by Stanislas Rolland over 12 years ago

  • Category set to RTE (rtehtmlarea + ckeditor)
  • Target version deleted (0)
  • TYPO3 Version set to 4.4
Actions #20

Updated by Steffen Gebert over 12 years ago

  • Status changed from Accepted to Resolved

Works in recent Opera versions.

Actions #21

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF