org.xwiki.gwt.wysiwyg.client.plugin.readonly
Class OperaReadOnlyKeyboardHandler

java.lang.Object
  extended by org.xwiki.gwt.user.client.KeyboardAdaptor
      extended by org.xwiki.gwt.wysiwyg.client.plugin.readonly.ReadOnlyKeyboardHandler
          extended by org.xwiki.gwt.wysiwyg.client.plugin.readonly.OperaReadOnlyKeyboardHandler
All Implemented Interfaces:
com.google.gwt.event.dom.client.KeyDownHandler, com.google.gwt.event.dom.client.KeyPressHandler, com.google.gwt.event.dom.client.KeyUpHandler, com.google.gwt.event.shared.EventHandler

public class OperaReadOnlyKeyboardHandler
extends ReadOnlyKeyboardHandler

Custom implementation of ReadOnlyKeyboardHandler for Opera browser.

Version:
$Id: e684657150ed64a5a7aba95aec01366c96416342 $

Constructor Summary
OperaReadOnlyKeyboardHandler()
           
 
Method Summary
protected  void moveCaretOutside(com.google.gwt.dom.client.Node node, boolean before)
          Places the caret outside of the specified node, either before or after.
 
Methods inherited from class org.xwiki.gwt.wysiwyg.client.plugin.readonly.ReadOnlyKeyboardHandler
handleRepeatableKey, onDelete, onDelete
 
Methods inherited from class org.xwiki.gwt.user.client.KeyboardAdaptor
handleKeyRelease, onKeyDown, onKeyPress, onKeyUp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperaReadOnlyKeyboardHandler

public OperaReadOnlyKeyboardHandler()
Method Detail

moveCaretOutside

protected void moveCaretOutside(com.google.gwt.dom.client.Node node,
                                boolean before)
Places the caret outside of the specified node, either before or after.

Opera doesn't allow us to place the caret before/after the macro unless we put the caret in a text node..

Overrides:
moveCaretOutside in class ReadOnlyKeyboardHandler
Parameters:
node - a DOM node
before - true to place the caret before the given node, false to place it after


Copyright © 2004–2015 XWiki. All rights reserved.