Package org.rstudio.core.client.events

Examples of org.rstudio.core.client.events.NativeKeyDownEvent


      }
     
      // delegate to the shortcut manager
      else
      {
         NativeKeyDownEvent evt = new NativeKeyDownEvent(e);
         ShortcutManager.INSTANCE.onKeyDown(evt);
         if (evt.isCanceled())
         {
            e.preventDefault();
            e.stopPropagation();
           
            // since this is a shortcut handled by the main window
View Full Code Here


   }-*/;

   private void handleKeyDown(NativeEvent e)
   { 
      // get the event
      NativeKeyDownEvent evt = new NativeKeyDownEvent(e);
     
      // if there is a zoom panel then ignore other shortcuts
      // (only handle Esc)
      if (activeZoomPanel_ != null)
      {
         if (e.getKeyCode() == KeyCodes.KEY_ESCAPE)
         {
            e.preventDefault();
            e.stopPropagation();
            activeZoomPanel_.close();
         }
      }
      else
      {
         ShortcutManager.INSTANCE.onKeyDown(evt);
         if (evt.isCanceled())
         {
            e.preventDefault();
            e.stopPropagation();
           
            // since this is a shortcut handled by the main window
View Full Code Here

TOP

Related Classes of org.rstudio.core.client.events.NativeKeyDownEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.