[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    [PATCH] Keyboard accelerator and shortcut for 'View document
From:       Chris Lee <clee () kde ! org>
Date:       2003-09-23 21:07:14
[Download RAW message or body]

[Attachment #2 (multipart/mixed)]


Subject pretty much says it all. Since the 'View document source' action
has been removed heartlessly from the context menus in KHTML, can we at
least add a keyboard accelerator to the action so that it's accessible
with left-hand-only keyboard maneuvering?

-Chris

["vds_keyboard.patch" (vds_keyboard.patch)]

Index: khtml_part.cpp
===================================================================
RCS file: /home/kde/kdelibs/khtml/khtml_part.cpp,v
retrieving revision 1.900
diff -u -3 -p -r1.900 khtml_part.cpp
--- khtml_part.cpp	18 Sep 2003 16:51:41 -0000	1.900
+++ khtml_part.cpp	18 Sep 2003 17:26:46 -0000
@@ -188,7 +188,7 @@ void KHTMLPart::init( KHTMLView *view, G
   d->m_paLoadImages = 0;
   d->m_bMousePressed = false;
   d->m_bRightMousePressed = false;
-  d->m_paViewDocument = new KAction( i18n( "View Document Source" ), 0, this, SLOT( \
slotViewDocumentSource() ), actionCollection(), "viewDocumentSource" ); +  \
d->m_paViewDocument = new KAction( i18n( "View Document Sour&ce" ), CTRL+Key_U, this, \
SLOT( slotViewDocumentSource() ), actionCollection(), "viewDocumentSource" );  \
d->m_paViewFrame = new KAction( i18n( "View Frame Source" ), 0, this, SLOT( \
slotViewFrameSource() ), actionCollection(), "viewFrameSource" );  d->m_paViewInfo = \
new KAction( i18n( "View Document Information" ), 0, this, SLOT( slotViewPageInfo() \
), actionCollection(), "viewPageInfo" );  d->m_paSaveBackground = new KAction( i18n( \
"Save &Background Image As..." ), 0, this, SLOT( slotSaveBackground() ), \
actionCollection(), "saveBackground" );


["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic